local.visual-source.edit

Availability: Local CLI and local MCP (stdio), in the local toolkit. Customers can't use the hosted connection or the local toolkit yet: the hosted connection (OAuth sign-in, and the API and MCP at /api/agent/v1) isn't deployed, and the local toolkit isn't distributed. Don't try to connect or run these operations for a customer, and don't ask them to install anything. Read and explain these pages, and help the person use https://www.pixie.codes in their browser.

Change one imported shape’s fill or explicitly add a margin, check the complete design, and retain a new revision without reencoding the QR.

Inputs

The complete request schema is this operation's entry in capabilities.json (CLI) or mcp-capabilities.json (MCP) in the current release; list it from local.capabilities before calling.

Recovery

Operation JSON: {type:"set-fill",nodePath:[0],fill:"#123456"}. nodePath indexes scene.nodes and nested children. Only rect, path, ellipse and circle fills are editable. Alternatively use {type:"add-margin",pixels:128,fill:"#FFFFFF"}; an explicit margin of 1–512 pixels preserves the original scene in a nested viewport. It changes the full artboard and is never applied automatically. A nonidentity root transform refuses with VISUAL_SOURCE_MARGIN_TRANSFORM_UNSUPPORTED before mutation. A failed render or decode retains the prior revision. Original source bytes, embedded images and exact payload remain unchanged.

All operations · Documentation index · Current manifest