xtiles_update_content
Edit xTiles content by its link. LINK (url): the url of a <page> or a <tile> tag, or a block's nested_url — exactly as a reading gives it; build no link of your own. xtiles_get_content_by_link reads the same links. Operations name blocks and tiles by data-id anywhere on the page the link resolves to. The link decides where an insert_blocks without position goes: a tile's — the end of that tile; a page's — nowhere, position is needed. Content nested in a block is edited at the block's nested_url: read it there first and take the ids and versions from that reading (a planner task's tile may be on another page — the operations then go to that page); a nested sub-project has several pages — read it, then write by one page's url. A block with no nested content gets it from xtiles_create_nested, not from this tool. READ: xtiles_get_view_content returns the page as <page data-id url title> holding <tile data-id url title> tags — url opens the page, or the page on that tile, to give the user or to link to — each holding one tag per block, named for its kind — <text>, <header>, <quote>, <code>, <task>, <link>, <image>, <file>, <color> (a colour swatch), <divider/>, <table> — each with its data-id. Inside a block is its text; its attributes are its properties. Text with a background reads <text background="green">; a link inside xTiles reads <link kind="internal"> — whatever it points at (a page, a tile, a collection row, a sub-project); to see what that is, read its url with xtiles_get_content_by_link. A tile that fills itself reads <tile kind="widget" …>; a planner's <tile kind="widget" widget="tasks" period="yyyy-MM-dd"> gathers the tasks of its period (a day, today, a month yyyy-MM, or overdue with before) — the user's own on My Planner (its project tag, when shown, reads kind="my_planner"), the project's on a project planner — as <task data-id="syn-…"> blocks whose title and task fields you edit as anywhere (one day of a repeating task keeps its date and its tile); the Schedule tile adds view="schedule" and shows the same tasks as a schedule, so a task in both often shows under one data-id — place new blocks by another neighbour. Such an id is taken in the later of the two tiles as the page reads (usually the Schedule tile): an edit of it sends that tile's data-version, and a block placed next to it lands there — to add to the other tile, anchor on a block only it shows or use end_of_tile. A task in a tasks widget stays in tasks widgets: move_block to another one gives it that period's day (not one day of a repeating task, whose date cannot change); into an ordinary tile it is refused — change its task.due_date instead. A syn- id is a projection of the task, not a block of its own; one you added there keeps its own block id in that tile while the other shows it as syn-… — either id edits the same task. A repeating task differs by id: syn-{id}_{yyyy-MM-dd} is that one day (complete it; its date cannot change), syn-{id} the whole series. A task added there without due_date is due in its period (an overdue widget gives none: name a date). Deleting a task there deletes the task itself, not just its place in the widget (a repeating task: that day, or its days in a week or month widget's period). A widget cannot be copied with insert_tiles: it fills itself. A block may hold content of its own that the app opens from it: nested="tile" (one tile of details — a task's description), nested="page" (a page of tiles) or nested="project" (a sub-project of pages). It is not part of this page: read it with xtiles_get_content_by_link on the block's nested_url, and edit it with this tool on what that reading returns. A nested tile belongs to the same page (the same page id), so one call may edit the page and its nested tiles together and move a block between them — but not into its own nested content. nested and nested_url are read only and are not copied. update_block and move_block keep the content; delete_block or replace_block on such a block, and delete_tile on a tile holding one, delete it too and are refused until the operation has confirm: ["delete_nested_content"] — add it only when deleting that content is meant, and an operation inside that content cannot go in the same call. The page's description is the <description data-id data-version shown="true|false"> tag right after the <page> tag (empty when the page has none); it is not a block — change it with update_description, its data-version in versions under its data-id (it is apart from the page's and every tile's), and never put it in inserted content. A new <task> in inserted content may hold a <description> of Markdown (paragraphs, lists, ## headings) — it becomes the task's nested tile, as the app keeps a task's description; an existing task's description is that tile: read it through the block's nested_url and edit it there (a title is text only — a <description> in it stays text). Every <tile> and the <page> carry a data-version. Pass in versions, under its data-id, the version of each tile your operations touch (both tiles of a move) as you read it, and the <page>'s under "page" when adding or deleting tiles; a nested tile goes by its own <tile data-version> from its nested_url reading (not that reading's <page data-version>, which is the page's tile set); an empty nested tile reads without a <tile> and needs no version — an edit that touches nothing else sends versions: {}. What decides is the reading, not whether the tile has blocks: a <tile> that reads with a data-version sends it, also with no blocks — a collection record's tile always does. A <page kind="collection"> has no version of its own: its rows' tiles carry theirs as on any page. If one of them changed since you read it, the edit is refused instead of overwriting what someone else wrote — read it again then; a change in a tile you do not touch does not refuse. All operations are checked against those reads before anything is written: if one fails those checks, none is applied. OPERATIONS: update_block {block_id, and any of: title, type, url, background, list, heading, code, task, divider, color} — changes only what you give; the block keeps its id, comments and everything attached to it. title — the text inside the tag, as inline markdown (bold, italic, links as [words](https://…)); a leading - or # is not markup there and is kept as literal text — a list item, heading or task is made with list, heading or type; a code block takes its source without backslash escapes. Text reads escaped and goes back the same way: a literal *, _, `, ~, [, ], < or \ is written with a backslash (2\*3); and inside every tag, code included, & and < are & and <. Copied as read, text stays exactly as it was. A new title replaces the text and its formatting: underline, colour, mentions and inline code are not shown in the reading, so they do not survive a changed title. type — the kind, as the tag is named; can become text | header | quote | code | task: task makes a text block a task, any other kind on a task makes it stop being one. url — repoints a link block or replaces an image block's picture; background — a text block's fill, one of yellow | orange | red | lightGreen | green | lightBlue | blue | pink | violet | beige | gray ("" removes it; a list item has none, and it is not sent with list); the text and url of a kind="internal" link are changed with replace_block and a new <link>. A block's properties go in groups, each for one kind of block — the kind it is, or becomes with type; the names inside are the attribute names of the reading, except that the list marker is list.type and a swatch's color attribute is color.value: list {type: bulleted | numbered | checked | toggle | no_marker (a list item without a marker) | none (no longer a list item), level (1 when the reading shows none), checked} — text blocks; heading {size: h1 | h2} — header blocks; code {language} — code blocks; task {due_date: "yyyy-MM-dd" or "yyyy-MM-dd HH:mm" in the user's timezone ("" clears), priority: low | medium | high | none, assignee: comma-separated emails — the complete set, "" for nobody; an address that is not a user yet is invited, so take them from xtiles_search_users — completed} — tasks; divider {style: line | solid_line | dotted | three_dots_solid} — dividers; color {value, format: hex | hsl | rgb, view: card | preview, size: small | medium | large | xl, hide_caption} — a <color> swatch. E.g. make a heading: {type: "header", heading: {size: "h1"}}; make a task: {type: "task", task: {due_date: …}}. Sending back an attribute unchanged is fine. position — exactly one of {after_block_id} | {before_block_id} | {end_of_tile: tile id}. New content is written exactly as the page reads (a copied data-id is ignored — new blocks get new ids): <text list="bulleted">Item</text>, <header size="h1">Title</header>, <task due_date="2026-12-01" priority="high">Call</task>, <link url="https://…">Label</link>, <image url="https://…">Caption</image>, <text background="green">Highlighted</text>, <color color="#FF5733" format="hex">Brand</color> (color and format needed), <divider style="dotted" />; a table is written as the reading shows it — copy it as read. Block tags only, not markdown lines; the text inside a tag is inline markdown, as in title. LINKS: a link that is part of a sentence, list item or task goes inside that block's text as [words](https://…) — never a <link> tag inside another tag (it is stored as its characters), and never a bare address (it stays text, not clickable). A link on its own, or each one in a list of sources, is a block of its own, <link url="https://…">Name</link>, named with words — what the person called it, else the site's or page's name — never the address itself. In a <link> the server tells what it points at — an address of an xTiles page, tile, block or collection row becomes a link to it, read back as kind="internal". An address comes from the person or a tool result, never made up; one they want kept as text stays text or <code>. To copy a tile, send its <tile> as read to insert_tiles. A task without assignee gets what a new task gets in the app — the user, unless the project is shared for writing (then nobody); assignee="" is nobody anywhere. A <file> cannot be written here, so a tile holding one cannot be copied whole; leave it in place or move it. insert_blocks {content: one or more block tags, position}. insert_tiles {content: one or more <tile title="…"> tags, each holding its block tags} — new tiles, placed after the page's other tiles. A text page is one tile: tiles cannot be added to it or deleted from it. delete_block {block_id}; delete_tile {tile_id} — permanent: the block or tile goes with its id, comments and attachments, so never delete and re-insert to edit — update instead. replace_block {block_id, content: one or more block tags} — the new blocks take the block's place and it is deleted, as permanently as by delete_block; for when a block becomes something update_block cannot make of it — another kind, or several blocks. No neighbour to name, so replace neighbours each with their own. move_block {block_id, position} — may move into another tile, but not to the end of an empty one. update_tile {tile_id, title}. update_description {title, page_description: {shown}} — the page description: title is the text of the <description> tag, as a block's title (the whole description, escaped as it reads — "" clears it); page_description.shown whether the page displays it (a new description is shown unless you say otherwise; title: "" clears and hides it; shown: true on a page with no description is refused); either alone keeps the other. On a collection page only the description and the blocks of its rows (each row is a tile, read by its link) are edited; rows are added, deleted and renamed, and columns changed, with the table tools. RULES: one operation per block and per place — several blocks for one place go in ONE insert; nothing may be placed next to a block that another operation deletes, replaces or moves, or into a tile being deleted (updating a block and inserting next to it is fine). A table block can be moved or deleted and blocks inserted next to it; its rows and columns are changed with the table tools. Returns the updated page, followed by each nested tile the edit touched; blocks it created have new ids there, and its data-versions are the versions of your next edit — no need to read it again. An edit refused by those checks applied nothing: a changed page (or nested tile) — read it again, the nested tile through its nested_url, and rebuild the operations from what it shows now, never resend them blindly; a refusal naming operations[N] — fix that operation and send the whole set again; a version refused as missing — add it from your read. An id refused as not on the page is stale or mistyped — read the page (or the nested tile, through its nested_url) again. What this tool is addressed by comes from a reading made with format: "tags" (xtiles_get_view_content, xtiles_get_content_by_link, xtiles_get_project_content, xtiles_get_planner_content); the default reading is plain markdown and shows none of it.
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": {
"url": "<url>",
"operations": "<operations>"
},
"name": "xtiles_update_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | What to edit: the `url` of a `<page>` or a `<tile>`, or a block's `nested_url` — exactly as read. | |
| versions | No | Required. The `data-version` of each tag your operations touch, under its `data-id`: every `<tile>` holding a block you change, delete, insert next to or move (both tiles of a move), a tile you update (`update_tile`) or name as `end_of_tile`, and the `<page>` under "page" when you add or delete tiles (`delete_tile` also takes the tile's own). A nested tile goes by its own `<tile data-version>` from its `nested_url` reading (not that reading's `<page data-version>`, which is the page's tile set); an empty one reads without a `<tile>` and needs none — but a `<tile>` that reads with a `data-version` sends it, also with no blocks (a collection record's tile always does). update_description: the `<description>` tag's, under its `data-id` (`{pageId}:description`). A changed one refuses the edit. | |
| operations | Yes | Edits checked together against the read before any is written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| content | Yes | ||
| view_id | Yes | ||
| project_id | Yes | ||
| applied_operations_count | Yes |