xtiles_set_page_layout
Reposition tiles on an xTiles page (view). Provide viewId and a list of tiles with their new grid positions (x, y, w, h). Only the listed tiles move; the rest keep their current position. Coordinates use the xTiles grid — (x, y) is the top-left corner and (w, h) the size, in grid cells. Out-of-bounds or overlapping positions are rejected, and so is resizing a tile below the minimum tile size (moving an existing smaller tile without resizing it is allowed). A text page’s layout is fixed — the call is refused there. Returns the resulting full layout. Tip: call xtiles_get_page_layout first to get tile IDs and current positions. The answer is the full layout — check it silently before replying: every column from x 0 to x 48 is covered from y 0 down to one shared bottom line, nothing overlaps, and each tile is sized for what it holds (a table at least 32 wide). Nothing of the check goes into the reply. Rules: xtiles://guide/markdown/design, Step 3.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiles | Yes | Tiles to reposition. Each tile_id must be unique; tiles you omit keep their current position. Positions are validated by the server — out-of-bounds or overlapping tiles, and a tile resized below the minimum tile size, are rejected. | |
| viewId | Yes | View ID of an xTiles page. You can also extract it from a page URL — it is the last path segment, whatever the domain, e.g. `https://xtiles.app/6740858058af8a09bf6096e6` → viewId is `6740858058af8a09bf6096e6`. Discover IDs programmatically via `xtiles_list_projects` or `xtiles_get_project_content`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | ||
| tiles | Yes | ||
| view_id | Yes | ||
| editable | No |