Files
marqdo/lib/writeback.mq.md
T
cflmyandCursor 63e5be80ab Add v0.2 surface syntax, writeback/subtask stdlib, and view input deferral.
Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 17:52:33 +08:00

746 B

title, description
title description
lib/writeback Persist run output in .mq.md (Jupyter-style writeback)

record

+ `value`
+ `at_end`=False

Write value to <!-- marqdo-out … --> in the entry file. Default: insert or replace the block immediately below the call; at_end=true appends a single block at EOF.

> host_writeback_record value=value at_end=at_end

get

+ `at_end`=False

Read persisted output for the current call site (adjacent block), or the EOF block when at_end=true.

> host_writeback_get at_end=at_end

clear

+ `at_end`=False

Remove the adjacent or EOF output block.

> host_writeback_clear at_end=at_end

list

List all output blocks in the entry file.

> host_writeback_list