xtiles_get_content_by_link
Resolve any xTiles link to the content it points at. Use this whenever the user pastes an xTiles URL instead of guessing which id it contains — the same URL can address a whole page or a single tile depending on its query string. Handles page links (/{viewId}, /doc/{viewId}, /embed/{viewId} — any xTiles domain, public or custom), tile links (?nvi=, ?wfm=, ?scrollTo=) and "copy link" links (/links/{linkId}). The URL is parsed and resolved against your own xTiles content by our API — it is never fetched from the host it names, so this only ever reaches the caller's own xTiles resources. Returns resource_type (what the link turned out to be), the ids it resolved to, and the content of THAT resource — for a tile link, the tile's own markdown, not the whole page. To read the full page a tile belongs to, follow up with xtiles_get_view_content using the returned view_id. A link to a collection card resolves to that card and returns ITS content — a card and a tile are the same item wearing two hats, so the type is TILE. A block's nested_url is an xTiles link too: it reads the content nested in that block — its tile, page or sub-project — which the page itself does not show. A block without one has nothing nested; xtiles_create_nested gives it a tile. The response states what you may do with the resource; respect it before offering to edit. Leftover tracking parameters (utm_*, im_ref, …) are ignored — paste the link as-is. Errors: 400 the string is not an xTiles link; 422 the link is a recognised shape we cannot resolve yet (public forms, task screens, workspace links); 404 the page or link no longer exists; 403 no access — which is also the answer for an unknown collection row, since telling those two apart would leak whether a private id exists. Report a 403 as "no access, or it no longer exists", not as a definite refusal. READ FORMAT: by default (format: "markdown") the content is plain markdown, the text xtiles_patch_view_content edits. Pass format: "tags" to read it as tags instead — a <page> with its url, <tile data-id> tags holding one tag per block, each table a <table url=… schema=…> tag, a collection page with its collection URL — with the ids, data-versions and links that xtiles_update_content, xtiles_create_nested and the table tools take. To edit by id, or to work with a table or a collection, read with format: "tags" first, and take every id, version and link from that reading. If you are going to edit, or to work with a table or a collection, and xtiles_update_content and the table tools are in your tool list, read with format: "tags" straight away. The markdown reading is for reading only, or for a client that does not have them.
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>"
},
"name": "xtiles_get_content_by_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Any xTiles link, passed EXACTLY as the user gave it — do NOT strip the query string. The query string is what distinguishes a link to a single tile from a link to the whole page: `https://xtiles.app/6740858058af8a09bf6096e6` is the page, while `https://xtiles.app/6740858058af8a09bf6096e6?nvi=eyJ2IjoxLC4uLg` addresses one tile inside it. Accepted: page links (`/{viewId}`, `/doc/{viewId}`, `/embed/{viewId}`), tile links (`?nvi=`, `?wfm=`, `?scrollTo=`) and "copy link to tile" links (`/links/{linkId}`). Any host works — public and custom xTiles domains included. A bare id is NOT a link and is rejected: an id alone does not say whether it names a page, a project or a task. If you already have a `viewId`, call `xtiles_get_view_content` instead. Returns the content of whatever the link addresses: for a tile link, that tile's content, not the page's. | |
| format | No | How the content is read. `"markdown"` (default): plain markdown. `"tags"`: the page as `<page>` / `<tile data-id>` tags holding one tag per block, with the ids, `data-version`s and links (`url`, `nested_url`) that `xtiles_update_content` and `xtiles_create_nested` take, and each table as a `<table url=… schema=…>` tag whose `url` the table tools take. Read with `"tags"` before calling any of those tools. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| url | Yes | ||
| title | No | ||
| access | No | ||
| content | No | ||
| page_url | No | ||
| collection | No | ||
| page_title | No | ||
| resource_url | No | ||
| project_title | No | ||
| resource_type | Yes |