draw_text

The Text tool: write text with the built-in 5x8 pixel font, top-left at (x, y); each font pixel becomes scale x scale pixels. Returns the text's size. With measure_only=true nothing is drawn.

SERVERPixmith SOURCEpixmith-mcp
High RISK CLASS
Category Execute
Parameters 123 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/pixmith-mcp/draw-text.md

What draw_text does on Pixmith

AI agents invoke draw_text to trigger actions in Pixmith. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

ParameterTypeRequiredDescription
x integer Yes Left edge.
y integer Yes Top edge.
doc string — Document id (see doc_list); optional when only one document is open.
ink string — simple (default; replaces pixels, transparent erases), alpha (blend over), lock_alpha (recolor only opaque pixels), behind (paint under existing pixels), shadin
text string Yes
color string — Color as "#RRGGBB" or "#RRGGBBAA" (also "#RGB", "#RGBA", "rgb(r,g,b)", "rgba(r,g,b,a)" with a in 0-1 or 0-255, a CSS basic name like "red", or "transparent"). A
frame integer — Frame (default: the active frame).
layer object — Layer index or name (default: the active layer). Must not be a group.
scale integer — Pixel scale of the 5x8 font, 1-16 (default 1).
mirror string — Symmetry: also draw mirrored (horizontal = left/right, vertical = top/bottom) across the canvas center, or across `mirror_axis_x` / `mirror_axis_y`.
brush_size integer — Brush size in pixels, 1-64 (default 1).
brush_shape string — square (default) or circle (round brush for sizes above 1).

Parameters from the server's own tool schema.

Why draw_text is rated High

draw_text triggers real processes with real consequences. An agent gone sideways doesn't fire it once. It starts dozens of builds, sends mass notifications, or burns through compute before anyone looks up.

Risk signalsHigh parameter count (17 properties)

Questions about draw_text

What does the draw_text tool do? +

The Text tool: write text with the built-in 5x8 pixel font, top-left at (x, y); each font pixel becomes scale x scale pixels. Returns the text's size. With measure_only=true nothing is drawn. It is categorised as a Execute tool in the Pixmith MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

What parameters does draw_text accept? +

draw_text accepts 12 parameters: x, y, doc, ink, text, color, frame, layer, scale, mirror, brush_size, brush_shape. Required: x, y, text. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on draw_text? +

Register the Pixmith MCP server in PolicyLayer and add a rule for draw_text: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Pixmith. Nothing to install.

What risk level is draw_text? +

draw_text is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit draw_text? +

Yes. Add a rate_limit block to the draw_text rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block draw_text completely? +

Set action: deny in the PolicyLayer policy for draw_text. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides draw_text? +

draw_text is provided by the Pixmith MCP server (pixmith-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Pixmith, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Pixmith's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.