doc_new

Create a new blank sprite (one transparent layer "Layer 1", one 100 ms frame) and return its document id. Optionally fill it with a background color, pick the color mode, or load a built-in palette. Coordinates everywhere are pixels, 0-based from the top-left; layers and frames are 0-based (layer...

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

This record as markdown: /tools/pixmith-mcp/doc-new.md

What doc_new does on Pixmith

AI agents invoke doc_new 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
name string — Display name (default "Untitled N").
width integer Yes Canvas width in pixels (1-16384).
height integer Yes Canvas height in pixels (1-16384).
target string — "app" (default; the sprite opens in a new tab of the Pixmith app, which is started when it is not running, so the user sees it) or "headless" (kept inside this
background string — Fill layer 1 with this color (default: transparent).
color_mode string — Color mode (default rgba). indexed snaps every color to the palette.
palette_preset string — Load a built-in palette by name (see palette action list_presets), e.g. "PICO-8".

Parameters from the server's own tool schema.

Why doc_new is rated High

doc_new 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.

Questions about doc_new

What does the doc_new tool do? +

Create a new blank sprite (one transparent layer "Layer 1", one 100 ms frame) and return its document id. Optionally fill it with a background color, pick the color mode, or load a built-in palette. Coordinates everywhere are pixels, 0-based from the top-left; layers and frames are 0-based (layer 0 = bottom of the stack). 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 doc_new accept? +

doc_new accepts 7 parameters: name, width, height, target, background, color_mode, palette_preset. Required: width, height. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on doc_new? +

Register the Pixmith MCP server in PolicyLayer and add a rule for doc_new: 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 doc_new? +

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

Can I rate-limit doc_new? +

Yes. Add a rate_limit block to the doc_new 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 doc_new completely? +

Set action: deny in the PolicyLayer policy for doc_new. 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 doc_new? +

doc_new 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.