Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WS_PORT | No | Widget WS server port | 4000 |
| TLDRAW_WS_URL | No | Widget WebSocket URL | ws://localhost:4000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_shape | Create a shape on the canvas (rectangle, ellipse, text, note, etc.) |
| update_shape | Update properties of an existing shape |
| delete_shapes | Delete one or more shapes from the canvas |
| connect_shapes | Connect two shapes with an arrow |
| get_snapshot | Get current state of all shapes on the canvas |
| clear_canvas | Remove all shapes from the canvas |
| zoom_to_fit | Zoom the canvas to fit all shapes in view |
| create_frame | Create a frame to group shapes together |
| create_flowchart | Create a flowchart diagram with nodes and connections. Nodes are auto-arranged. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |