export_godot
File > Export to Godot: export a Godot 4 SpriteFrames resource (.tres, one animation per tag, durations kept) plus its atlas PNG(s), optionally an AnimatedSprite2D scene (.tscn), into a Godot project. project_root is the folder containing project.godot and tres_path must be inside it. Re-exportin...
This record as markdown: /tools/pixmith-mcp/export-godot.md
What export_godot does on Pixmith
AI agents use export_godot to create or update resources in Pixmith, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Pixmith environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | — | Document id (see doc_list); optional when only one document is open. |
trim | boolean | — | Crop frames to their content (offsets keep them in place). |
tscn | boolean | — | Also write an AnimatedSprite2D scene (.tscn). |
scale | integer | — | Integer upscale 1-16. |
layers | array | — | Layers to include by name (default: visible layers). |
extrude | boolean | — | Repeat edge pixels into the padding. |
packing | string | — | tight (default) or grid. |
padding | integer | — | Pixels between atlas frames. |
preview | boolean | — | Describe the export without writing anything. |
tres_path | string | — | Output .tres path inside the project. Default: the document's saved settings. |
each_layer | boolean | — | One SpriteFrames per visible layer. |
max_texture | integer | — | Largest atlas page side (default 4096, max 16384). |
Parameters from the server's own tool schema.
Why export_godot is rated Medium
An AI agent can call export_godot faster than any human can review: one bad instruction and it creates or modifies resources in Pixmith by the hundred, each call as confident as the last.
Risk signalsHigh parameter count (19 properties) · Bulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs export_godot safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Pixmith, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For export_godot, this is the rule to start with:
export_godot stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Pixmith, apply this rule, and every export_godot call is checked against it from then on.
Questions about export_godot
File > Export to Godot: export a Godot 4 SpriteFrames resource (.tres, one animation per tag, durations kept) plus its atlas PNG(s), optionally an AnimatedSprite2D scene (.tscn), into a Godot project. project_root is the folder containing project.godot and tres_path must be inside it. Re-exporting keeps resource uids stable. Without project_root/tres_path the settings saved in the document are used (save_settings=true stores the ones you pass). preview=true writes nothing and returns the .tres text, the files it would write and the first atlas page as an image. Live Link: export once with save_settings=true so the document knows its res:// resource; after that a game running the Pixmith Live Link addon (godot/addons/pixmith_live_link in the Pixmith repository, debug builds only) updates its sprites after every edit, including edits made through this server, with no re-export or restart. Call game_screenshot to look at the running game. Live Link and the game view need the Pixmith app 0.5.1 or later. It is categorised as a Write tool in the Pixmith MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
export_godot accepts 12 parameters: doc, trim, tscn, scale, layers, extrude, packing, padding, preview, tres_path, each_layer, max_texture. The full parameter table on this page comes from the server's own tool schema.
Register the Pixmith MCP server in PolicyLayer and add a rule for export_godot: 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.
export_godot is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the export_godot 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.
Set action: deny in the PolicyLayer policy for export_godot. 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.
export_godot 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.
This server
Across the catalogue