Add a block
add_blockInsert a block. Omit index to append. Omit data to use the default content for the type, then call update_block to fill it in.
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": "<document>",
"type": "<type>"
},
"name": "add_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Block data; defaults to the type's default. | |
| type | Yes | A type from list_blocks. | |
| index | No | ||
| document | Yes | The Publisle document: an object with schemaVersion and blocks, as returned by the other tools. |