create_code_widget
Creates a syntax-highlighted code block widget on a Miro board at specified coordinates, letting you place formatted code with optional language, title, size, and line numbers.
Instructions
Create a code widget (syntax-highlighted code block). EXPERIMENTAL.
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": {
"board_id": "<board_id>",
"code": "<code>",
"x": "<x>",
"y": "<y>"
},
"name": "create_code_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| code | Yes | ||
| title | No | ||
| width | No | ||
| height | No | ||
| board_id | Yes | ||
| language | No | ||
| parent_frame_id | No | ||
| line_numbers_visible | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |