Create frame
create_frameCreate a frame (a screen) on the board, optionally filled with HTML + Tailwind. Placed to the right of existing content unless x/y are given; it never covers a frame, note or section (a spot that would is moved to the closest free one, and the result says so). Elements given your own keys (data-id="toggle") come back with the id each one got.
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": {
"fileId": "<fileId>",
"name": "<name>"
},
"name": "create_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| data | No | Values for <template data-each> and {{field}} placeholders in the html. | |
| html | No | Content of the frame: HTML + Tailwind. | |
| name | Yes | Screen name, e.g. "Login – mobile". | |
| class | No | Tailwind classes of the frame's root (background, padding, layout...). | bg-white |
| width | No | Width in px, or "hug" to fit the content. | |
| device | No | Device preset (sets width and height): iphone-16 393×852, iphone-16-pro-max 440×956, iphone-se 375×667, pixel-9 412×915, galaxy-s24 360×780, ipad 820×1180, ipad-pro-13 1032×1376, laptop 1280×800, desktop 1440×1024, desktop-hd 1920×1080. | |
| fileId | Yes | ||
| height | No | Height in px, or "hug" to fit the content. | hug |
| parentId | No | Page or section to put the frame in. Defaults to the first page. |