local.gs1.image.prepare
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.
Prepare a complete original PNG for native GS1 artwork. Source v2 offers Most expansive maximum complete-source fit or explicit Manual placement, with opt-in structural reservation and full sampled/authored previews.
- CLI command:
prepare-native-gs1-image - MCP tool:
local.gs1.image.prepare - Operation version: 1
- Effect:
read - 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): Complete original PNG with explicit sampler/placement/priorities as a versioned JSON file, at most4MiB UTF-8. Source v2 offers Most expansive or Manual placement and explicit structural reservation. Read requestSchema; no project write or encoding.
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
Read requestSchema and LOCAL-GS1-NATIVE-IMAGE.md. Offer source v2 Most expansive alongside Manual placement when the user wants the scene across the whole QR. Explicit reserve-qr-structure-v1 reserves 298 structural positions and refuses required overlaps. Compare original, complete samplingPreview, authoredPreview and reserved source colours before encoding; MCP returns the complete preview inline. Maximum fit does not promise retention, visual quality or scan success. Named regions are caller-declared priorities, not recognized features. Keep layer.imageSource and cells together. Inspect exact target constraints, generate once, inspect per-layer/region fidelity and actual files, follow exact-artifact verification and check export/reopen. Source v2 accepts up to2MiB original/2MP/2048px side and4MiB request; source v1 keeps its1MiB original bound. Combined native artwork originals are limited to2MiB. No automatic search or retry. No crop, redraw, encoding, SQL, provider access, project write or spend.