local.creative.propose-contrast
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.
Render a separately named colour-contrast alternative beside the unchanged original. Retain actual scan results and a reviewable revision; never replace or select the original automatically.
- CLI command:
propose-creative-contrast - MCP tool:
local.creative.propose-contrast - Operation version: 1
- Effect:
local_draft_compute - 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
expected-revision(integer, required)item(string, required): Item ID returned in the project manifest.new-item(string, required): Unused sibling item ID for the proposed contrast alternative; the original item is retained.operation(string, required): Explicit versioned palette-contrast JSON file (version, darkScale, lightBlend), at most 4096 bytes. Literal colours change.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
Operation JSON: {version:1,darkScale:0.8,lightBlend:0.2}. darkScale multiplies every dark colour (1 leaves them unchanged); lightBlend moves every light colour toward white (0 leaves them unchanged). Start gently and strengthen only while the actual scan still fails; 0.3/0.6 is a strong change. Typical need: large flat artwork reads wrongly even though every module is correct. Lower darkScale when dark artwork is not much darker than the light colours beside it; raise lightBlend when light artwork is mid-toned. Change as little as passes, and compare the colours with the original each time. It works on any Creative item, including an exploration option that was encoded but failed its scan check; a project holds at most ten items, so each attempt uses one and a failed attempt stays as a failed sibling. The scan check covers the one exported size: render or rasterise the other sizes you will deliver and check those too, because a design can pass at one size and fail at another. In an exploration project a passing alternative can be selected with use-brand-candidate by its new-item ID. This explicit whole-module treatment changes artwork colours and QR ink. Use only when colour exploration is allowed; never describe it as faithful colour migration. Current scope: opaque v2 Creative contextual rendering, no literal-source policy, separate eye/ink styles, gradients or scan-dot overlays. darkScale must be >0 and <=1; lightBlend >=0 and <1. Tier collapse/reversal refuses. Successful render receipts expose checks.paletteContrast.levels from the shared renderer; these are tone-admitted levels, not scan passes. Studio offers the same discrete choices. Re-render after changing a level; never silently snap or recolour. Review original and candidate colours as well as both scan results. A completed scan failure remains a failed sibling, not an accepted option. After interruption inspect history before retrying; the same new-item cannot be overwritten. Export/reopen use ordinary project operations. No live routing, printing, publishing or payment occurs.