local.source.apply-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.
Apply one explicitly reviewed original-file proposal as a local revision, replacing the selected item’s complete retained source entry and preserving its working QR.
- CLI command:
apply-source-import - MCP tool:
local.source.apply-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
project(string, required): Explicit local project directory.proposal-hash(string, required): Exact source-bound proposal hash displayed for this candidate and render. Required for source-grid selection and imported-logo options. For original-file import it is the reviewed proposalHash, which identifies content and does not grant approval.reference(string, required): Exact private original-file reference returned by prepare-source-import.
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
Use the exact saved reference and proposalHash after reviewing additions, removals and metadata. Changed originals, tampered/foreign references and stale base revisions refuse. After interruption inspect the project, then retry the same reference/hash: an immediate committed retry returns already_applied even if original files were removed. A later divergent revision refuses. No provider, reconstruction, publication, purchase, print or POS effect.