Write doc
write_docWRITES a doc from Markdown. Without card_id it adds a new doc card (in free space, in group, or at the top-left); with card_id it adds pages to that doc, after its pages or under parent_page_id. Headings, lists, checklists (- [ ] / - [x]), tables, quotes, code, links, ==highlight== and underline carry over. A picture is placed only from a file already on the board, as (image_key from read_board); other pictures become links.
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": {
"board_id": "<board_id>",
"pages": "<pages>"
},
"name": "write_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | A new doc's height, default 240 | |
| w | No | A new doc's width, default 320 | |
| x | No | A new doc's left edge; x and y left out, free space | |
| y | No | A new doc's top edge | |
| draft | No | The draft key create_boards returned. Pass it on every call about that draft. | |
| group | No | A new doc's section (made if missing) | |
| pages | Yes | The pages, in order | |
| title | No | A new doc's title; left out, its one page's title | |
| card_id | No | A doc card to add the pages to; left out, a new doc | |
| board_id | Yes | The board | |
| position | No | "top": top-left, ahead of the sections (not with group, x, y) | |
| parent_page_id | No | With card_id: the page these go under |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| pages | No | ||
| groups | No | ||
| card_id | No | ||
| created | No | ||
| board_id | No |