local.visual-source.import
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.
Retain one supported SVG design with its original symbol geometry, full artboard, PNG assets and exact original bytes in a new local project.
- CLI command:
import-visual-source - MCP tool:
local.visual-source.import - Operation version: 1
- Effect:
local_draft - Permission: Explicit local filesystem access only; no publication, provider or spending authority.
- Contract: local contract 1, digest
3c0203c9a00b1c1935e94899236058298bf761f94021a47ad588bd9c3e5be9b8 - Output schema:
outputSchemain the catalog entry. It describes the JSON result the CLI prints. MCP returns the same result in its first text block, with two exceptions:local.artifact.readsends the file bytes as a separate image or resource block, andlocal.capabilitiesreturns the MCP form of the catalog - Errors: each error carries
code,classandrecovery; classes are listed undererrorsin the catalog
Inputs
input(string, required): Explicit JSON source manifest file, at most 32 MiB.project(string, required): Explicit local project directory.reason(string): Short explanation retained with the revision.
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
Input JSON: {schemaVersion:1,name,item,gridSize,expectedPayload,originalSvgBase64}. Base64 contains the original SVG bytes, at most 1 MiB. Optional fontAssets binds the documented plain Roboto caption profile to explicit pinned font bytes and its exact license. Read pixie-local://docs/source-captions for the complete contract and pixie-local://docs/source-font for identity/license; each asset is {sha256,mime:"font/ttf",bytesBase64,license}. No font or stylesheet is fetched during import. Captions remain text in the source project and become outlines in SVG delivery. Only documented SVG geometry, PNG and caption profiles are supported; unknown elements, typography or attributes refuse. Render and review before use. This does not migrate a provider link, establish source rights or qualify physical printing.