blocks
Read and modify page content at the block level: retrieve a block, list children, append markdown, update text, or delete.
Instructions
Read and modify block-level content within pages.
Actions (required params -> optional):
get (block_id): retrieve single block
children (block_id): list child blocks
append (block_id, content -> position, after_block_id): add markdown content at position
update (block_id, content): replace text block content
delete (block_id): remove block
Use pages for page metadata/properties. Page IDs are valid block IDs. update only works on text blocks (paragraph, headings, lists, quote, to_do, code). Image/file blocks contain signed URLs (1h expiry). append supports position: "start" (prepend), "end" (default), "after_block" (requires after_block_id).
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": {
"action": "<action>",
"block_id": "<block_id>"
},
"name": "blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| content | No | Markdown content (for append/update) | |
| block_id | Yes | Block ID | |
| position | No | Insert position for append: start (prepend), end (default), after_block (requires after_block_id) | |
| after_block_id | No | Block ID to insert after (when position is after_block) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||