Edit doc page
edit_doc_pageCHANGES one page of a doc. Either rewrite it whole: markdown as the page should now read, with page_hash (from fetch or write_doc) so nothing written since you read it is lost; if it changed, read again and redo. Or send edits, each an exact old_text found once in the page's Markdown and its new_text. Returns the new hash.
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>",
"card_id": "<card_id>",
"page_id": "<page_id>"
},
"name": "edit_doc_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | The draft key create_boards returned. Pass it on every call about that draft. | |
| edits | No | Changes made in order, instead of markdown | |
| title | No | A new title for the page | |
| card_id | Yes | The doc card | |
| page_id | Yes | The page, from fetch or write_doc | |
| board_id | Yes | The board | |
| markdown | No | The whole page as it should now read; needs page_hash | |
| page_hash | No | The page's hash when you read it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| page | No | ||
| blocks | No | ||
| changed | No |