Organization chart
chart.org_chart
Overview
Render deterministic single-root organization structures with declared text-only card content, structural refusal witnesses, and no directory lookup or avatar loading. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance.
Organization cards need measured layout and strict structural witnesses.
Reliability
Every declared node and edge renders or the complete request refuses.
Context footprint
Organization layout uses CHART_CAPACITY_EXCEEDED and CHART_OUTPUT_TOO_LARGE for bounds, CHART_THEME_UNKNOWN and CHART_DATA_SHAPE_INVALID for invalid declarations, and CHART_UNSAFE_OUTPUT or CHART_OUTPUT_TOO_COMPLEX when we must refuse your unsafe result. A successful call costs 4 execution credits.
When to use it
When one connected acyclic reporting tree is already available.
When identities must be fetched or nodes have multiple parents.
Scope
Non-goals
- Directory lookup
- Avatars
- DAGs
- Editing
- Collapse
- Navigation
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.
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 may contain submitted or transformed 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.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| nodes | array | Yes | Array of 1..250 objects with id, optional parentId, label, optional role/team/status/kind/order/badge/meaning; exactly one root. |
| orientation | string | No | topDown|leftRight|indented; defaults to topDown when omitted. |
| siblingOrder | string | No | input|explicit ordering of sibling nodes; defaults to input when omitted. |
| connectors | object | No | Optional object with mode orthogonal|elbow; defaults to orthogonal when omitted. |
| nodeContent | object | No | Optional object with showRole, showTeam and showStatus booleans; all default true when omitted. |
| nodeSize | string | No | compact|standard|wide; defaults to standard when omitted. |
| title | string | No | Bounded title; omission renders no title. |
| subtitle | string | No | Bounded subtitle; omission renders no subtitle. |
| behavior | object | No | Object with motion and interaction properties; defaults to disabled when omitted. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance. |
| width | integer | No | Canvas width in pixels, 100..1600 (optional; default 1000). Outside that range the request is refused as invalid input rather than clamped. The ceiling is the size a chart is read at — a full-HD dashboard or a report page; beyond it the canvas stops being what limits how much fits, and type sized for the canvas is illegible once the export is displayed smaller. It applies per side, so a tall portrait canvas for a long horizontal ranking is allowed. |
| height | integer | No | Canvas height in pixels, 160..1600 (optional; default 640). Outside that range the request is refused as invalid input rather than clamped. The ceiling is the size a chart is read at — a full-HD dashboard or a report page; beyond it the canvas stops being what limits how much fits, and type sized for the canvas is illegible once the export is displayed smaller. It applies per side, so a tall portrait canvas for a long horizontal ranking is allowed. |
| theme | string | No | Visual language: basic, modern or squillify (optional; default squillify). An unregistered value is rejected with the registered names listed — we never substitute silently. |
| surface | string | No | Surface the theme renders on: dark or light (optional; default light). |
| density | string | No | How tightly the chrome is packed: compact, standard or spacious (optional; default standard). Density scales spacing only — it never lowers a legibility minimum. |
| visualProfile | string | No | What the SVG promises about the host font: portable or certified (optional; default portable). The default is layout-deterministic and tolerates substitution; certified refuses text the certified metrics cannot fully measure. |
| style | object | No | Optional bounded paint and typography styling; omit it to use the selected theme defaults. text.size is expressed in normalized design pixels at an 800-pixel reference width, so equivalent roles match at equal CSS width. It never changes data or accessibility. 'contract' selects the published semantics. 'tokens' sets design tokens; 'rules' applies typed properties to a role and optional series/category facets; 'palette' accepts a digest-checked palette; 'css' is a bounded post-layout stylesheet. The styleCapabilities section publishes this family's accepted roles, properties and copyable examples. For Bar, target one mark with role 'bar' plus seriesIndex and categoryIndex; categoryIndex alone targets that category across series. A minimal rule is {"target":{"role":"bar"},"set":{"paint.fill":"#2563eb"}}. Unsupported typed rules are refused; unsupported CSS is dropped and reported. Do not discover the grammar through trial calls: style validation failures are currently billable. Before calling, read this contract's styleSurface and styleCapabilities sections for the complete rule shape, accepted roles and properties, limits, and copyable examples. |
| output | object | No | Output scoping (optional). Nested key output.idNamespace ([a-z][a-z0-9-]{0,31}) is prefixed onto every generated element id when several charts share one host document; omit for a standalone chart. An invalid namespace is rejected. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| svg | string | Yes | Final script-free canonical SVG. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance. |
| width | integer | Yes | Resolved canvas width. |
| height | integer | Yes | Resolved canvas height. |
| viewBox | string | Yes | Rendered coordinate system. |
| nodeResults | array | Yes | Every declared field, structural index, path, child count, and card bound. |
| treeResult | object | Yes | Root, node/edge/depth/fan-out counts and pinned layout version. |
| renderSummary | object | Yes | Object containing bounded nodeCount, edgeCount, maxDepth and maxFanOut counts. |
| transformationSummary | object | Yes | Always-present bounded report of any card or layout adaptation. |
| behavior | object | No | Object containing digest-bound manifest, data index, entry plan and transitions when requested. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance. |
| styleReport | object | No | Always reports the resolved typographyProfile and fontMetrics contract, plus tokensApplied, rulesApplied, typedRulesApplied, typedAssignmentsApplied, rulesDropped, declarationsDropped and, when anything was dropped, a bounded list of reasons. |
| warnings | array | No | Present when the render succeeded with a known degradation. Each entry is an object with a stable code, a message and details. Every chart can emit FONT_SUBSTITUTION_POSSIBLE under visualProfile 'portable', FONT_GLYPH_UNMEASURED when a code point falls outside the certified metrics, and CHART_STYLE_PARTIALLY_APPLIED when part of your styling was dropped — styleReport then names which part and why. Codes are stable for agent routing. No node, edge, level, or branch is dropped. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"skillKey":"chart.org_chart","input":{"nodes":[{"id":"ceo","label":"Executive"},{"id":"team","parentId":"ceo","label":"Team"}]}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("chart.org_chart", {"nodes":[{"id":"ceo","label":"Executive"},{"label":"Product","id":"product","parentId":"ceo"},{"label":"Engineering","id":"engineering","parentId":"ceo"}]});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| CHART_CAPACITY_EXCEEDED | 429 | No | A size, quota, rate, or time limit was exceeded. |
| CHART_OUTPUT_TOO_LARGE | 429 | No | A size, quota, rate, or time limit was exceeded. |
| CHART_THEME_UNKNOWN | 400 | No | The request payload failed this skill's input validation. |
| CHART_DATA_SHAPE_INVALID | 400 | No | The request payload failed this skill's input validation. |
| CHART_UNSAFE_OUTPUT | 500 | No | The skill encountered an unexpected execution failure. |
| CHART_OUTPUT_TOO_COMPLEX | 500 | No | The skill encountered an unexpected execution failure. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Directory lookup
- Avatars
- DAGs
- Editing
- Collapse
- Navigation
- Directory access, cross-links, or interactive editing
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "chart.org_chart",
"input": {
"nodes": [
{
"id": "ceo",
"label": "Executive"
},
{
"label": "Product",
"id": "product",
"parentId": "ceo"
},
{
"label": "Engineering",
"id": "engineering",
"parentId": "ceo"
}
]
}
}Examples
Reporting tree
{
"nodes": [
{
"id": "ceo",
"label": "Executive"
},
{
"label": "Product",
"id": "product",
"parentId": "ceo"
},
{
"label": "Engineering",
"id": "engineering",
"parentId": "ceo"
}
]
}{
"viewBox": "0 0 1000 640",
"treeResult": {
"maxFanOut": 2,
"rootId": "ceo",
"nodeCount": 3,
"edgeCount": 2,
"maxDepth": 1
},
"transformationSummary": {
"applied": false,
"operations": [],
"affectedCategoryCount": 0,
"affectedPointCount": 0,
"affectedLabelCount": 0
},
"renderSummary": {
"skill": "chart.org_chart",
"nodeCount": 3,
"edgeCount": 2,
"maxDepth": 1,
"maxFanOut": 2
},
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1000\" height=\"640\" viewBox=\"0 0 1000 640\" role=\"img\" class=\"sq-chart sq-chart--org-chart sq-family--hierarchy sq-theme--squillify sq-surface--light sq-density--standard\" data-sq-style-contract=\"CHART_STYLE@1\" data-sq-chart=\"org-chart\" data-sq-family=\"hierarchy\" data-sq-theme=\"squillify\" data-sq-theme-version=\"1\" data-sq-surface=\"light\" data-sq-density=\"standard\" data-sq-a11y-detail=\"full\" aria-labelledby=\"sq-e4a2a1514ab4-title-0 sq-e4a2a1514ab4-desc-1\"><title id=\"sq-e4a2a1514ab4-title-0\">Organization chart</title><desc id=\"sq-e4a2a1514ab4-desc-1\">Organization chart with 3 strict-tree nodes using org-tidy-layout@1</desc><style>.sq-chart{--sq-chart-axis:#c9d1df;--sq-chart-font-family:'Squillify Mono', 'IBM Plex Mono', monospace;--sq-chart-grid:#d8dee9;--sq-chart-surface:#ffffff;--sq-chart-text-muted:#667085;--sq-chart-text-primary:#101828;--sq-series-1:#2563eb;--sq-series-2:#6d5ce7;--sq-series-3:#168a5b;--sq-series-4:#c45412;--sq-series-5:#d92d20;--sq-series-6:#667085;font-family:var(--sq-chart-font-family);font-weight:500;}.sq-chart .sq-background{fill:var(--sq-chart-surface);}</style><rect x=\"0\" y=\"0\" width=\"1000\" height=\"640\" fill=\"#ffffff\" class=\"sq-background\" data-sq-role=\"background\"/><g class=\"sq-plot\" data-sq-role=\"plot\"><path d=\"M 500.0 88.0 L 500.0 320.0 L 97.0 320.0 L 97.0 552.0\" fill=\"none\" stroke=\"#c9d1df\" stroke-width=\"1.5\" class=\"sq-mark sq-org-connector\" data-sq-role=\"org-connector\" data-sq-target-key=\"t-orgedge-af2bbb7bd8d1b2f6\"/><path d=\"M 500.0 88.0 L 500.0 320.0 L 903.0 320.0 L 903.0 552.0\" fill=\"none\" stroke=\"#c9d1df\" stroke-width=\"1.5\" class=\"sq-mark sq-org-connector\" data-sq-role=\"org-connector\" data-sq-target-key=\"t-orgedge-b97ae5298acb7eaf\"/><g class=\"sq-org-focus\" data-sq-role=\"org-node\" data-sq-target-key=\"t-org-7bccfffd1f272d15\"><rect x=\"415\" y=\"12\" width=\"170\" height=\"76\" rx=\"4\" fill=\"#ffffff\" stroke=\"#2563eb\" stroke-width=\"1.5\" class=\"sq-mark sq-org-node\" data-sq-role=\"org-node\" data-sq-category-index=\"0\" data-sq-palette-index=\"0\"/><text x=\"500\" y=\"30\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-org-node-label\" data-sq-role=\"org-node-label\">Executive</text></g><g class=\"sq-org-focus\" data-sq-role=\"org-node\" data-sq-target-key=\"t-org-ab1c42ebb939446a\"><rect x=\"12\" y=\"552\" width=\"170\" height=\"76\" rx=\"4\" fill=\"#ffffff\" stroke=\"#6d5ce7\" stroke-width=\"1.5\" class=\"sq-mark sq-org-node\" data-sq-role=\"org-node\" data-sq-category-index=\"1\" data-sq-palette-index=\"1\"/><text x=\"97\" y=\"570\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-org-node-label\" data-sq-role=\"org-node-label\">Product</text></g><g class=\"sq-org-focus\" data-sq-role=\"org-node\" data-sq-target-key=\"t-org-66b8f7d08d1ed61f\"><rect x=\"818\" y=\"552\" width=\"170\" height=\"76\" rx=\"4\" fill=\"#ffffff\" stroke=\"#6d5ce7\" stroke-width=\"1.5\" class=\"sq-mark sq-org-node\" data-sq-role=\"org-node\" data-sq-category-index=\"2\" data-sq-palette-index=\"1\"/><text x=\"903\" y=\"570\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-org-node-label\" data-sq-role=\"org-node-label\">Engineering</text></g></g></svg>",
"nodeResults": [
{
"id": "ceo",
"path": [
"ceo"
],
"inputIndex": 0,
"cardBounds": {
"width": 170,
"height": 76,
"x": 415,
"y": 12
},
"kind": "person",
"label": "Executive",
"childCount": 2,
"siblingIndex": 0,
"depth": 0,
"meaning": "neutral",
"preorderIndex": 0
},
{
"parentId": "ceo",
"meaning": "neutral",
"cardBounds": {
"width": 170,
"height": 76,
"x": 12,
"y": 552
},
"id": "product",
"label": "Product",
"kind": "person",
"path": [
"ceo",
"product"
],
"childCount": 0,
"preorderIndex": 1,
"inputIndex": 1,
"siblingIndex": 0,
"depth": 1
},
{
"parentId": "ceo",
"meaning": "neutral",
"cardBounds": {
"width": 170,
"height": 76,
"x": 818,
"y": 552
},
"id": "engineering",
"label": "Engineering",
"kind": "person",
"path": [
"ceo",
"engineering"
],
"childCount": 0,
"preorderIndex": 2,
"inputIndex": 2,
"siblingIndex": 1,
"depth": 1
}
],
"width": 1000,
"height": 640
}Left-to-right roles
{
"orientation": "leftRight",
"nodes": [
{
"role": "Director",
"id": "lead",
"label": "Lead"
},
{
"label": "Team",
"parentId": "lead",
"role": "Engineering",
"id": "team"
}
]
}{
"viewBox": "0 0 1000 640",
"treeResult": {
"maxFanOut": 1,
"rootId": "lead",
"nodeCount": 2,
"edgeCount": 1,
"maxDepth": 1
},
"transformationSummary": {
"applied": false,
"operations": [],
"affectedCategoryCount": 0,
"affectedPointCount": 0,
"affectedLabelCount": 0
},
"renderSummary": {
"skill": "chart.org_chart",
"nodeCount": 2,
"edgeCount": 1,
"maxDepth": 1,
"maxFanOut": 1
},
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1000\" height=\"640\" viewBox=\"0 0 1000 640\" role=\"img\" class=\"sq-chart sq-chart--org-chart sq-family--hierarchy sq-theme--squillify sq-surface--light sq-density--standard\" data-sq-style-contract=\"CHART_STYLE@1\" data-sq-chart=\"org-chart\" data-sq-family=\"hierarchy\" data-sq-theme=\"squillify\" data-sq-theme-version=\"1\" data-sq-surface=\"light\" data-sq-density=\"standard\" data-sq-a11y-detail=\"full\" aria-labelledby=\"sq-a6650098b29c-title-0 sq-a6650098b29c-desc-1\"><title id=\"sq-a6650098b29c-title-0\">Organization chart</title><desc id=\"sq-a6650098b29c-desc-1\">Organization chart with 2 strict-tree nodes using org-tidy-layout@1</desc><style>.sq-chart{--sq-chart-axis:#c9d1df;--sq-chart-font-family:'Squillify Mono', 'IBM Plex Mono', monospace;--sq-chart-grid:#d8dee9;--sq-chart-surface:#ffffff;--sq-chart-text-muted:#667085;--sq-chart-text-primary:#101828;--sq-series-1:#2563eb;--sq-series-2:#6d5ce7;--sq-series-3:#168a5b;--sq-series-4:#c45412;--sq-series-5:#d92d20;--sq-series-6:#667085;font-family:var(--sq-chart-font-family);font-weight:500;}.sq-chart .sq-background{fill:var(--sq-chart-surface);}</style><rect x=\"0\" y=\"0\" width=\"1000\" height=\"640\" fill=\"#ffffff\" class=\"sq-background\" data-sq-role=\"background\"/><g class=\"sq-plot\" data-sq-role=\"plot\"><path d=\"M 182.0 320.0 L 500.0 320.0 L 500.0 320.0 L 818.0 320.0\" fill=\"none\" stroke=\"#c9d1df\" stroke-width=\"1.5\" class=\"sq-mark sq-org-connector\" data-sq-role=\"org-connector\" data-sq-target-key=\"t-orgedge-948ac464a6643d95\"/><g class=\"sq-org-focus\" data-sq-role=\"org-node\" data-sq-target-key=\"t-org-d63fc5d315336be9\"><rect x=\"12\" y=\"282\" width=\"170\" height=\"76\" rx=\"4\" fill=\"#ffffff\" stroke=\"#2563eb\" stroke-width=\"1.5\" class=\"sq-mark sq-org-node\" data-sq-role=\"org-node\" data-sq-category-index=\"0\" data-sq-palette-index=\"0\"/><text x=\"97\" y=\"300\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-org-node-label\" data-sq-role=\"org-node-label\">Lead</text><text x=\"97\" y=\"316\" font-size=\"10\" text-anchor=\"middle\" fill=\"#667085\" class=\"sq-label sq-org-node-role\" data-sq-role=\"org-node-role\">Director</text></g><g class=\"sq-org-focus\" data-sq-role=\"org-node\" data-sq-target-key=\"t-org-fac5ba62ff5ccd36\"><rect x=\"818\" y=\"282\" width=\"170\" height=\"76\" rx=\"4\" fill=\"#ffffff\" stroke=\"#6d5ce7\" stroke-width=\"1.5\" class=\"sq-mark sq-org-node\" data-sq-role=\"org-node\" data-sq-category-index=\"1\" data-sq-palette-index=\"1\"/><text x=\"903\" y=\"300\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-org-node-label\" data-sq-role=\"org-node-label\">Team</text><text x=\"903\" y=\"316\" font-size=\"10\" text-anchor=\"middle\" fill=\"#667085\" class=\"sq-label sq-org-node-role\" data-sq-role=\"org-node-role\">Engineering</text></g></g></svg>",
"nodeResults": [
{
"meaning": "neutral",
"role": "Director",
"cardBounds": {
"width": 170,
"height": 76,
"x": 12,
"y": 282
},
"id": "lead",
"label": "Lead",
"kind": "person",
"path": [
"lead"
],
"childCount": 1,
"preorderIndex": 0,
"inputIndex": 0,
"siblingIndex": 0,
"depth": 0
},
{
"depth": 1,
"childCount": 0,
"preorderIndex": 1,
"inputIndex": 1,
"cardBounds": {
"width": 170,
"height": 76,
"x": 818,
"y": 282
},
"id": "team",
"path": [
"lead",
"team"
],
"siblingIndex": 0,
"label": "Team",
"parentId": "lead",
"kind": "person",
"meaning": "neutral",
"role": "Engineering"
}
],
"width": 1000,
"height": 640
}Recommended use cases
- Render bounded reporting structures from already-authorized text
- Publish a deterministic single-root organization diagram
Avoid for
- Directory access, cross-links, or interactive editing
Related skills
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.