Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Connectors tldraw
Live 6 Actions

tldraw Integration for AI Agents

Connect your AI agent to tldraw actions via MCP, A2A, or SDK, with agent authentication, tool-calling execution, and security built-in.

StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

tldraw AI Agent Actions

6 production-ready actions for your agent to do more on tldraw.

6 Actions
Execute Code - Execute JavaScript code on a tldraw canvas. The code runs in the widget with access to the live `editor` instance, helper functions, and normal js. Use the `search` tool first to discover available Editor methods and shape types. Each canvas has a unique `canvasId`. Omit `canvasId` to create a new blank canvas. To edit an existing canvas, pass the `canvasId` that was returned by a previous exec call. Shapes and text grow depending on the amount of text they have. Use clever scripting to ensure there are no unintended overlaps. Examples: - Create a rectangle: editor.createShape({ _type: 'rectangle', shapeId: 'box1', x: 200, y: 120, w: 320, h: 180, text: 'Hello' }) - Connect shapes with an arrow: editor.createShape({ _type: 'arrow', shapeId: 'a1', fromId: 'box1', toId: 'box2', x1: 0, y1: 0, x2: 100, y2: 0 }) - Select and zoom: editor.select('box1'); editor.zoomToSelection() - Read shapes: return editor.getCurrentPageShapes() - Distribute evenly: editor.distributeShapes(editor.getSelectedShapeIds(), 'horizontal') - Box around shapes: boxShapes(['box1', 'box2'], { text: 'Group label', color: 'blue' }) - Stack shapes dynamically: editor.createShape({ _type: 'rectangle', shapeId: 'a', x: 0, y: 0, w: 300, h: 200, text: 'First box\nwith wrapping text' }); const bounds = editor.getShapePageBounds('a'); editor.createShape({ _type: 'rectangle', shapeId: 'b', x: 0, y: bounds.maxY + 20, w: 300, h: 200, text: 'Below first' })
Exec Callback - App-only: widget calls this to resolve a pending exec request.
Get Canvas State - App-only: get the latest checkpoint for a canvas by its canvasId.
Read Checkpoint - App-only: read shapes from a checkpoint by ID.
Save Checkpoint - App-only: save shapes to a checkpoint (from user edits). shapesJson and assetsJson must be JSON array strings.
Search Editor API - Search the tldraw Editor API spec by writing JavaScript that receives a `spec` object and returns a result. The spec contains: spec.members (all Editor methods/properties with name, kind, signature, description, category), spec.categories (category names), spec.types.shapes (focused shape type definitions with props), spec.types.shapeTypes (list of all shape type strings), spec.helpers (exec helper functions with descriptions, params, examples). Examples: - Find shape methods: return spec.members.filter(m => m.category === "shapes").map(m => ({ name: m.name, signature: m.signature })) - Get arrow shape props: return spec.types.shapes.find(s => s.shapeType === "arrow") - List all categories: return spec.categories - Find a helper: return spec.helpers.find(h => h.name === "createArrowBetweenShapes")

Do More, Build Less

Connect AI to tldraw and control what it can do, down to the field

Multiple Interfaces

Access integrations via API, AI SDKs, MCP & A2A.

tldraw MCP server
Managed Authentication

Pre-built authentication UI.

Agent auth
Falcon Engine

Every tldraw action runs on Falcon.

Agent Execution Engine
StackOne Defender
StackOne Defender 0.94 DeBERTa 0.74 Meta PG v2 0.63 NemoGuard 0.58 F1, Jayavibhav (65,000 samples)

0.94 F1 on prompt injection.

Prompt injection defense

"What impressed us most about StackOne is its ambition and clarity. They're creating infrastructure that modern software and the entire AI agent ecosystem can rely on. The depth of secure integrations, the pace of delivery, and the team's foresight into AI's future uniquely position StackOne to redefine this category."

Luna Schmid, Partner at GV

"We've been impressed by how quickly and deeply StackOne integrates with complex enterprise systems -- and now, with their focus on agent-to-agent interoperability, they're unlocking even more powerful use cases for customers. StackOne delivers all of the above in a universal layer -- without compromise."

Barbry McGann, SVP at Workday Ventures

G2 - High Performer G2 - Easiest To Do Business With G2 - Users Love Us G2 - Best Relationship G2 - Easiest Admin

Product Teams Love Building Agent Integrations With StackOne

G2

tldraw AI agent integration resources

Agentic Context Engineering: Why AI Agents Kill Their Own Context Windows

AI agents exceed their context windows without knowing it. Six failure patterns and seven survival architectures for agentic context engineering.

15 min

Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery

Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.

10 min

Ready to put your agents to work?