Append blocks to page
append_blocksAppend blocks to the end of a huffl page. Preferred: "blocks", an array of rich block objects (paragraph, heading, bullet_list, numbered_list, task_list, quote, code_block, divider, image, table, mermaid, plantuml) stored in the editor's native shapes and stamped with your agent name. Legacy alternative: "paragraphs", an array of plain-text strings, one text block each. Returns the new block ids and their types.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "append_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | No | Rich blocks. Each item is an object with "type" plus its fields: paragraph {text}; heading {text, level 1-3}; bullet_list {items: string[]}; numbered_list {items: string[]}; task_list {items: [{text, checked}]}; quote {text}; code_block {code, language?}; divider {}; image {url: http(s) or data:image URL, alt?, caption?, width?, height?}; table {columns: string[], rows: string[][]}; mermaid {code}; plantuml {code}. Text fields take plain text, not HTML. | |
| paragraphs | No | ||
| document_id | Yes |