insert_library_item
Insert a pre-built Excalidraw library item or built-in icon at specified X/Y coordinates with optional scale to place reusable visuals on a canvas.
Instructions
Insert a pre-built library item (icon) at the specified position with optional scale. Supports items from all 8 official Excalidraw libraries plus built-in icons.
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": {
"itemId": "<itemId>",
"x": "<x>",
"y": "<y>"
},
"name": "insert_library_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| scale | No | Scale factor (default: 1) | |
| itemId | Yes | Library item ID or name (e.g., "aws-architecture-icons:dynamodb", "google-icons:anthos", "software-logos:docker", "dynamodb", "redis", "server") | |
| library | No | Optional library name to narrow search |