xtiles_write_table_rows
Create, update and delete rows of one xTiles table — a canvas table or a collection — in a single batch of up to 100 operations. Address the table by the url of its <table …> tag and each row by the xt:row_id that xtiles_read_table_rows reports; set cells by COLUMN ID. The url of a <collection url row_id> tag in an item’s <properties> is that collection’s address too. Its row_id is the item’s xt:row_id there. This is NOT a transaction: operations apply in order, and the answer reports every one of them separately — including unchanged, which means the table already held what was asked for. Read the table first: a value has to fit its column, and the schema says what each one takes. In a collection a row holds a record's fields: writing a cell changes that field wherever the record is shown — the one way to change a field, except a column the schema marks read-only, which no write takes. xt:url is the row’s read-only link; it cannot be written. A cell holds a short field; a record's notes, description or steps belong in its nested tile, never in a cell or a new column. Every record has that tile from the start: details the person gave for a record go there — after adding records with them, read the rows for each record’s own link, open it, and write them in the same request. A remark that only explains the request — why a value stays, what someone is still deciding — is not a detail: write it nowhere. A field the record needs and the collection has no column for — an end date, a second amount — is a column to add, not a detail for the nested tile. A value that fits none of a choice column’s options, and that the person did not name as a new one: leave that cell and write the rest; the reply says no option fits and names the options there are, or asks which to use. Delete only the records the person named, or those a condition they stated picks out; when you would choose them yourself — "old", "no longer relevant" — list them and ask first, naming only those. Asked to remove duplicates: an exact copy — every field the same, and nothing in its nested tile that the other one lacks: open both before you decide — is one the person named, so delete it and say it was removed, not how you checked; records that differ, in a field or in their nested tiles — show how, and ask what to do with them, without deciding for the person whether they are the same. 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_write_table_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The `url` attribute of the `<table …>` tag that was rendered when the page was read. Pass it back unchanged — it addresses a canvas table and a collection alike, and it is not assembled from ids. The `url` of a `<collection url row_id>` tag in an item’s `<properties>` is that collection’s address too. A page's id — from a project's structure or anywhere else — is not this url: read the page first. | |
| operations | Yes | Up to 100 row operations, applied in order. Not a transaction — see the tool description. | |
| allow_new_options | No | Default false. When true, an unknown label in a select or multiselect cell becomes a NEW option of that column and the cell is written; the options added are listed in `created_options`. Set it only when the person named the value, or the source being carried over brought it. A near-miss of an existing label (the answer gives `did_you_mean`), an empty label and a new label in a PRIORITY/STATUS column are still refused. In a multiselect a comma inside a new label must be escaped as `\,` (`Lviv\, Ukraine` is one label); a bare comma separates labels. A select takes the whole value as one label and reads the same escape — see the tables guide (`xtiles://guide/markdown/tables`), "What a write accepts", before using it. Never for a label you worded yourself to describe what the person said — a situation they described is not a value they named. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No | ||
| summary | No | ||
| created_options | No |