Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Replay Generated Palette

palette.replay

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

Send the recovery seed palette.generate handed you and we return exactly the same colours: the same hexes, the same stops, the same paletteDigest. The seed carries the request it was issued for, so it is the only field there is — nothing to re-state, nothing that can drift out of step with it. Use palette.generate to create a palette, palette.get for a reviewed library palette. Max input 4096 bytes.

A stored chart should come back the same colour next month, and a seed is the smallest thing you can store to guarantee that.

Reliability

STRICT and deterministic — the same seed always returns the same colours and the same paletteDigest. Domain errors (not retryable — fix the input; unchanged input will fail again): PALETTE_SEED_INVALID (the seed is damaged or not one we issued — paste the sqg. token we returned, unedited); PALETTE_GENERATION_EXHAUSTED (the seed is well formed but asks for something we no longer build — the palette rules changed under it, so generate a fresh palette and keep the new seed); PALETTE_VALUE_INVALID (generation fields sent alongside the seed — send the seed alone, or call palette.generate with those fields).

Context footprint

Returns one palette object plus the replay envelope. No chart image is rendered. A successful call costs 1 execution credit.

When to use it

You have a recovery seed and want its palette back, exactly.

You do not have a seed — use palette.generate to create a palette, or palette.recommend to choose a reviewed one.

Scope

Note
Rebuilds the exact generated palette a recovery seed stands for, from that seed alone.

Non-goals

  • Does not create a new palette — that is palette.generate
  • Does not accept preferences alongside the seed, or change what the seed says
  • Does not look up reviewed library palettes — that is palette.get
  • Does not mark the result as a reviewed Squillify library palette

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

validation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input4 KB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
seedstringYesRecovery seed from palette.generate or a palette.recommend fallback; it already carries kind, count, surface and every preference.

Output schema

FieldTypeRequiredDescription
replayobjectYesClosed recovery envelope with the seed to keep, how it was issued, the canonical request baked into it and that request's digest.
paletteobjectYesClosed ready-to-apply palette with provenance, kind, model, surface, colours, optional gradient stops, application tokens, evidence and warnings.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"palette.replay","input":{"seed":"sqg.…"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("palette.replay", {"seed":"sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImNvdW50Ijo2LCJpbnRlbnQiOnsiaHVlUHJlZmVyZW5jZSI6WyJibHVlIiwidGVhbCJdLCJpbnRlbnNpdHkiOiJyZXN0cmFpbmVkIiwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJjYXRlZ29yaWNhbCIsInN1cmZhY2UiOiJsaWdodCIsInRhcmdldCI6ImNoYXJ0X3NlcmllcyJ9fQ"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
PALETTE_SEED_INVALID400NoThe request payload failed this skill's input validation.
PALETTE_GENERATION_EXHAUSTED412NoThe input is valid but cannot be processed as-is.
PALETTE_VALUE_INVALID400NoThe request payload failed this skill's input validation.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not create a new palette — that is palette.generate
  • Does not accept preferences alongside the seed, or change what the seed says
  • Does not look up reviewed library palettes — that is palette.get
  • Does not mark the result as a reviewed Squillify library palette
  • Creating colours you do not have a seed for — use palette.generate
  • Adjusting a generated palette — generate a new one and keep its seed

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "palette.replay",
  "input": {
    "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImNvdW50Ijo2LCJpbnRlbnQiOnsiaHVlUHJlZmVyZW5jZSI6WyJibHVlIiwidGVhbCJdLCJpbnRlbnNpdHkiOiJyZXN0cmFpbmVkIiwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJjYXRlZ29yaWNhbCIsInN1cmZhY2UiOiJsaWdodCIsInRhcmdldCI6ImNoYXJ0X3NlcmllcyJ9fQ"
  }
}

Examples

Recover a six-series palette from its seed

Inputjson
{
  "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImNvdW50Ijo2LCJpbnRlbnQiOnsiaHVlUHJlZmVyZW5jZSI6WyJibHVlIiwidGVhbCJdLCJpbnRlbnNpdHkiOiJyZXN0cmFpbmVkIiwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJjYXRlZ29yaWNhbCIsInN1cmZhY2UiOiJsaWdodCIsInRhcmdldCI6ImNoYXJ0X3NlcmllcyJ9fQ"
}
Expected outputjson
{
  "replay": {
    "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImNvdW50Ijo2LCJpbnRlbnQiOnsiaHVlUHJlZmVyZW5jZSI6WyJibHVlIiwidGVhbCJdLCJpbnRlbnNpdHkiOiJyZXN0cmFpbmVkIiwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJjYXRlZ29yaWNhbCIsInN1cmZhY2UiOiJsaWdodCIsInRhcmdldCI6ImNoYXJ0X3NlcmllcyJ9fQ",
    "seedSource": "provided",
    "canonicalRequest": {
      "surface": "light",
      "target": "chart_series",
      "kind": "categorical",
      "count": 6,
      "intent": {
        "intensity": "restrained",
        "temperature": "cool",
        "huePreference": [
          "blue",
          "teal"
        ]
      }
    },
    "canonicalRequestDigest": "sha256:a8a91a5c055195eff73c414de6cf7e8486cf7a669a22e30c0494f28ac51d4198"
  },
  "palette": {
    "ref": {
      "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImNvdW50Ijo2LCJpbnRlbnQiOnsiaHVlUHJlZmVyZW5jZSI6WyJibHVlIiwidGVhbCJdLCJpbnRlbnNpdHkiOiJyZXN0cmFpbmVkIiwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJjYXRlZ29yaWNhbCIsInN1cmZhY2UiOiJsaWdodCIsInRhcmdldCI6ImNoYXJ0X3NlcmllcyJ9fQ",
      "seedSource": "provided",
      "requestDigest": "sha256:a8a91a5c055195eff73c414de6cf7e8486cf7a669a22e30c0494f28ac51d4198",
      "source": "generated",
      "paletteDigest": "sha256:71affc729ff1b2bc5cc589d516a270ae5ac42969c1ce29495f6cafa6e5513849"
    },
    "displayName": null,
    "kind": "categorical",
    "model": "adaptive",
    "surface": "light",
    "cardinality": 6,
    "colors": [
      "#3F5613",
      "#358052",
      "#00675B",
      "#3283B0",
      "#565D99",
      "#9F72AF"
    ],
    "direction": "normal",
    "application": {
      "chartStyleTokens": {
        "--sq-series-1": "#3F5613",
        "--sq-series-2": "#358052",
        "--sq-series-3": "#00675B",
        "--sq-series-4": "#3283B0",
        "--sq-series-5": "#565D99",
        "--sq-series-6": "#9F72AF"
      },
      "target": "chart_series"
    },
    "evidence": {
      "surfaceContrastMinimum": 3.818,
      "pairwiseMinimum": 9.193,
      "state": "validated"
    },
    "warnings": []
  }
}
Tip
The same six colours the seed was issued for, with seedSource provided

Recover a sequential gradient from its seed

Inputjson
{
  "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImludGVudCI6eyJodWVQcmVmZXJlbmNlIjpbImJsdWUiXSwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJzZXF1ZW50aWFsIiwic3VyZmFjZSI6ImxpZ2h0IiwidGFyZ2V0IjoiY29sb3JfZ3JhZGllbnQifX0"
}
Expected outputjson
{
  "replay": {
    "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImludGVudCI6eyJodWVQcmVmZXJlbmNlIjpbImJsdWUiXSwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJzZXF1ZW50aWFsIiwic3VyZmFjZSI6ImxpZ2h0IiwidGFyZ2V0IjoiY29sb3JfZ3JhZGllbnQifX0",
    "seedSource": "provided",
    "canonicalRequest": {
      "kind": "sequential",
      "surface": "light",
      "intent": {
        "temperature": "cool",
        "huePreference": [
          "blue"
        ]
      },
      "target": "color_gradient"
    },
    "canonicalRequestDigest": "sha256:4942f2f5d40d230d7ddb1e846e269466781ca8c02fbabd3e83e205a9fd8f8532"
  },
  "palette": {
    "ref": {
      "seed": "sqg.eyJlIjoiMTAxMTEyMTMxNDE1MTYxNzE4MTkxYTFiMWMxZDFlMWYiLCJyIjp7ImludGVudCI6eyJodWVQcmVmZXJlbmNlIjpbImJsdWUiXSwidGVtcGVyYXR1cmUiOiJjb29sIn0sImtpbmQiOiJzZXF1ZW50aWFsIiwic3VyZmFjZSI6ImxpZ2h0IiwidGFyZ2V0IjoiY29sb3JfZ3JhZGllbnQifX0",
      "seedSource": "provided",
      "requestDigest": "sha256:4942f2f5d40d230d7ddb1e846e269466781ca8c02fbabd3e83e205a9fd8f8532",
      "source": "generated",
      "paletteDigest": "sha256:6bdf80d605d684a07421f1fda60c40d59e56d4a7d01eafc527d5fdf243c183fe"
    },
    "displayName": null,
    "kind": "sequential",
    "model": "continuous",
    "surface": "light",
    "cardinality": 9,
    "colors": [
      "#D2F1FF",
      "#9BDFFD",
      "#66CBF4",
      "#2BB6E6",
      "#009FCC",
      "#0088AF",
      "#007193",
      "#0F5B75",
      "#274451"
    ],
    "stops": [
      {
        "color": "#D2F1FF",
        "t": 0
      },
      {
        "color": "#9BDFFD",
        "t": 0.125
      },
      {
        "color": "#66CBF4",
        "t": 0.25
      },
      {
        "color": "#2BB6E6",
        "t": 0.375
      },
      {
        "color": "#009FCC",
        "t": 0.5
      },
      {
        "color": "#0088AF",
        "t": 0.625
      },
      {
        "color": "#007193",
        "t": 0.75
      },
      {
        "color": "#0F5B75",
        "t": 0.875
      },
      {
        "color": "#274451",
        "t": 1
      }
    ],
    "interpolation": {
      "colourSpace": "OKLab",
      "profile": "perceptual-smooth"
    },
    "closure": "clamp",
    "direction": "normal",
    "application": {
      "target": "color_gradient",
      "chartStyleTokens": {}
    },
    "evidence": {
      "surfaceContrastMinimum": 1.182,
      "surfaceContrastMaximum": 10.335,
      "stopCount": 9,
      "lightnessMonotonic": true,
      "state": "validated"
    },
    "warnings": []
  }
}
Tip
The same nine stops, in the same positions, for a light gradient
  • Re-render a chart with the colours it used last time, from a stored seed
  • Keep one short seed instead of a whole palette payload
  • Recover the palette behind a palette.recommend answer that generated one

Avoid for

  • Creating colours you do not have a seed for — use palette.generate
  • Adjusting a generated palette — generate a new one and keep its seed

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

palettereplaychartvisualizationcolor