excalidraw-update

excalidraw-update is a command for Claude Code from lesleslie/excalidraw-mcp. It costs 28 tokens per session (469 once invoked), scanned A, original, BSD-3-Clause.

A command for changing an existing item on an Excalidraw canvas. Excalidraw is a browser-based whiteboard tool, and the command can update an element's position, size, text, or stroke colour.

In plain words
What is it for?
Use it to move, resize, relabel, or restyle rectangles, arrows, text, and other existing Excalidraw elements.
Why use it?
It lets you make targeted canvas edits without recreating the item or changing fields you did not specify.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the excalidraw plugin — 3 commands shipped together

Good fit Use it to move, resize, relabel, or restyle rectangles, arrows, text, and other existing Excalidraw elements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lesleslie/excalidraw-mcp/excalidraw-update
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lesleslie/excalidraw-mcp

Made for: Claude Code.

Or install excalidraw, the plugin that ships this one along with the rest of its 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for excalidraw-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/lesleslie/excalidraw-mcp/excalidraw-update/github.svg)](https://agentmods.dev/commands/lesleslie/excalidraw-mcp/excalidraw-update)
Your own site
<a href="https://agentmods.dev/commands/lesleslie/excalidraw-mcp/excalidraw-update"><img src="https://agentmods.dev/badge/commands/lesleslie/excalidraw-mcp/excalidraw-update/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for excalidraw-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/lesleslie/excalidraw-mcp/excalidraw-update"><img src="https://agentmods.dev/badge/commands/lesleslie/excalidraw-mcp/excalidraw-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00469
Opus 5 $0.00014 $0.00234
Sonnet 5 $0.00006 $0.00094
Haiku 4.5 $0.00003 $0.00047

Measured 10d ago against content hash 9ff35e9cb3cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

excalidraw-update scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/excalidraw-update.md · 38 lines

What it actually says

/excalidraw-update

Live-update an element that already exists on the Excalidraw canvas.

Usage

/excalidraw-update <element-id> [--x N] [--y N] [--width N] [--height N] [--text "..."] [--stroke-color "#RRGGBB"]

Arguments:

  • <element-id>: id of the target element (returned by mcp__excalidraw__query_elements or mcp__excalidraw__create_element).
  • --x N: optional new absolute canvas x coordinate.
  • --y N: optional new absolute canvas y coordinate.
  • --width N: optional new element width in pixels.
  • --height N: optional new element height in pixels.
  • --text "...": optional new text payload.
  • --stroke-color "#RRGGBB": optional new stroke color in hex form.

Only the supplied fields are mutated; unspecified fields keep their current values.

Workflow

  1. Call mcp__excalidraw__health_check to confirm the canvas subprocess is running.
  2. If the caller does not know <element-id>, call mcp__excalidraw__query_elements to discover the candidate ids.
  3. Build the request payload from the supplied arguments (only the fields the caller asked to change).
  4. Call mcp__excalidraw__update_element with the element id and the request payload.
  5. Report which fields changed and the canvas sync status.

Example

/excalidraw-update elem_abc123 --x 240 --y 160 --stroke-color "#1f6feb"

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 38 lines · 28 tokens per session scan A 9ff35e9cb3cb

Subscribe to this mod's changes

excalidraw-update is a command published in the GitHub repository lesleslie/excalidraw-mcp (14 stars, last pushed 9d ago), licensed BSD-3-Clause. It adds 28 tokens to every session and 469 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.