create_element
Generate and customize Excalidraw elements (shapes, text, lines) with precise positioning, dimensions, colors, and styles via a structured API for diagram creation and modification.
Instructions
Create a new Excalidraw element
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": {
"type": "<type>",
"x": "<x>",
"y": "<y>"
},
"name": "create_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backgroundColor | No | ||
| fontFamily | No | ||
| fontSize | No | ||
| height | No | ||
| opacity | No | ||
| roughness | No | ||
| strokeColor | No | ||
| strokeWidth | No | ||
| text | No | ||
| type | Yes | ||
| width | No | ||
| x | Yes | ||
| y | Yes |