xtiles_create_view_from_markdown
Create a new view (page) inside an existing xTiles project from Markdown. One ## heading at most — it becomes the view title; ### headings become tiles. A second ## is refused: call this tool once per page (a brand-new project with several pages: xtiles_create_project_from_markdown). Returns the new view_id and resource_url (a link that opens the created page in the xTiles web app). Use xtiles_list_projects to find the projectId. A table may declare its column types with a <table schema='…'> tag — the schema a read prints; it works on a table in a tile and on a collection page (a ## heading with the table right under it). What a collection holds and how to decide it: xtiles://guide/markdown/collections, after xtiles://guide/markdown/overview; the full grammar of the tag: xtiles://guide/markdown/tables. A relation column exists only on a collection page: RELATION(<url of the target collection>), its cells naming target records by the ids a read of that collection returns (Title (id)), never by title alone; a collection created in the same call cannot be a target — create the collection it points at first, then the one with the relation column in a call of its own. A relation column is one-way: the other collection shows nothing of it — tell the person, and that the other side is switched on in the app. A record's details — a description, notes, steps — go into its nested tile, which every record has from the start, never into a column: after the write, read the collection's rows and open each record by its own link.
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": {
"projectId": "<projectId>",
"markdown": "<markdown>"
},
"name": "xtiles_create_view_from_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | Markdown content for the new view. One `##` heading at most — it becomes the view title; `###` headings become tiles. A second `##` is refused — call this tool once per page. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`. Write each tile with its colour and style (`@color` / `@colorSize` under its `###`), so it arrives designed; which values to choose is in `xtiles://guide/markdown/design` — read it after the overview, before writing. | |
| projectId | Yes | Project (document) ID to create the new view in (use xtiles_list_projects to discover). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_id | No | ||
| project_id | No | ||
| resource_url | No |