Build with the API
MCP tools
The tools your agent gets once it is connected. The table is read from the same list the server registers its tools from, so it always matches what your agent sees.
| Tool | What it does | Auth | REST equivalent |
|---|---|---|---|
| whoami | Who this connection is: the workspace, the key name and prefix, and the permissions it holds. Use it to confirm a new connection works. | API key | GET /api/v2/me |
| list_brands | The brands in the workspace this key belongs to, each with its designs (id, name, status, whether it is ready to build from). Start here to find a design id. | API key | MCP only |
| get_design_context | The design's continuation bundle as JSON: brief, tokens, board digest, the continuation contract (hard floor first, then the latitude level), live inventory, coherence audit and the import contract. | API key | GET /api/v2/designs/{designId}/handoff |
| get_repo_rules_pack | The files that teach a coding agent this brand inside your repo: AGENTS.md, CLAUDE.md, a Cursor rule, DESIGN.md and the token files, each with its path and content. Merge the marked blocks, never overwrite the rest of a file. | API key | GET /api/v2/designs/{designId}/rules-pack |
| get_design_system_kit | The design as a Design System artifact kit: its title, the project/ file list with sizes and validation result, plus the download URL for the zip (fetch it with the same API key as a Bearer token). Claude Code publishes the tree as the app's Design System artifact. | API key | GET /api/v2/designs/{designId}/design-system-kit |
| get_design_brief | The ordered prompt pack for one design round, regenerated from live data: agent "claude" builds one Design canvas artifact with one artboard per surface, agent "other" writes local HTML drafts in the repo. pass "explore" asks for 2-3 directions per surface, "lock" builds the chosen one. | API key | GET /api/v2/designs/{designId}/prompt-pack |
| import_design_work | Import finished work back into BrandPilot. Rows land as DRAFT on the carrier project's Deliverables tab for human review - nothing auto-approves. Components: self-contained HTML with inline styles. Pages: standalone HTML documents. Assets: PNG (base64 or URL) with optional sourceCode. | API key | POST /api/v2/designs/{designId}/external-artifacts |
| finish_design_import | Validates that components and pages were imported, optionally accepts every pending imported draft, then resumes the pipeline at the coherence audit toward Design Review. Only valid while the project is paused for outside design work. | API key | POST /api/v2/designs/{designId}/finish-external |
| list_public_systems | The showcased public design systems in the BrandPilot pool: name, display name, brand color, status, version and their v2 endpoints. | public | GET /api/v2/systems |
| get_system_manifest | Full adoption manifest for a public system: tokens, components, pages, brand asset URLs and the binding design-direction block. | public | GET /api/v2/systems/{name}/adoption |
| export_system_tokens | A public system's tokens in one format: globals-css, colors-ts, spacing-ts, typography-ts, tailwind-theme, tailwind-v4, brand-manifest or dtcg. | public | GET /api/v2/systems/{name}/export |
| get_adoption_brief | Markdown onboarding doc for a public system: the two copy-paste prompts a coding agent uses to bootstrap a design package and run a design round (a Design canvas for Claude Code, local HTML drafts for any other agent). | public | GET /api/v2/systems/{name}/agent-prompt |
| get_claude_design_kit | The Claude Design kit for a design: its title, file list with sizes and validation result, plus the download URL for the zip (fetch it with the same API key as a Bearer token).Older setup, stops working on 2026-12-15. Use get_design_system_kit instead. | API key | GET /api/v1/designs/{designId}/claude-design-kit |
| list_systems | List the public design systems in the BrandPilot pool (name, slug, brand color, token count, status).Older setup, stops working on 2026-12-15. Use list_public_systems instead. | public | GET /api/v1/systems |
| get_system_adoption | Full adoption manifest for a public system: tokens, components, pages, brand asset URLs and the binding design-direction block.Older setup, stops working on 2026-12-15. Use get_system_manifest instead. | public | GET /api/v1/systems/{name}/adoption |
| get_system_tokens | Export a public system's tokens in one format: globals-css, colors-ts, spacing-ts, typography-ts, tailwind-theme or brand-manifest. Calls the legacy /api/systems/export endpoint, not a v1 path - the export route has no v1 equivalent yet.Older setup, stops working on 2026-12-15. Use export_system_tokens instead. | public | GET /api/systems/export/{name} |
| get_agent_prompt | Markdown onboarding doc for a public system: the two copy-paste prompts an external AI coding agent uses to bootstrap a design package and sync it to Claude Design.Older setup, stops working on 2026-12-15. Use get_adoption_brief instead. | public | GET /api/v1/systems/{name}/agent-prompt |
| get_design_handoff | The design's continuation bundle as JSON: brief, tokens, board digest, the continuation contract (hard floor first, then the latitude level), live inventory, coherence audit and the import contract. Available mid-flow (project paused for outside design work) and post-completion.Older setup, stops working on 2026-12-15. Use get_design_context instead. | handoff key | GET /api/v1/designs/{designId}/handoff |
| get_design_prompt_pack | The app-authored sequential Claude Design prompt pack (markdown): anchor sheet first, then template-aware component sheets and page prompts, each embedding the latitude contract in force. Regenerated from live data on every call. Without pass it returns the v1 pack; pass=explore then pass=lock with the chosen direction return the v2 two-pass pack, and format=copy-map returns the copy map the v2 pack lists as a project file.Older setup, stops working on 2026-12-15. Use get_design_brief instead. | handoff key | GET /api/v1/designs/{designId}/prompt-pack |
| import_design_artifacts | Import externally designed work back into BrandPilot. Rows land as DRAFT on the carrier project's Deliverables tab for human review - nothing auto-approves. Components: self-contained HTML with inline styles. Pages: standalone HTML documents. Assets: PNG (base64 or URL) with optional sourceCode.Older setup, stops working on 2026-12-15. Use import_design_work instead. | handoff key | POST /api/v1/designs/{designId}/external-artifacts |
| finish_external_design | Validates that components and pages were imported, optionally accepts every pending imported draft, then resumes the pipeline at the coherence audit toward Design Review. Only valid while the project is paused for outside design work.Older setup, stops working on 2026-12-15. Use finish_design_import instead. | handoff key | POST /api/v1/designs/{designId}/finish-external |
Good to know
- Account tools use your API key and reach only your own workspace. Public tools read published brand systems and need no key.
- A hosted MCP request must stay under 1,000,000 bytes, so
import_design_worksends large images byhttpsURL, or one image per call. - Uploads land as drafts on the project for your review. Nothing is approved automatically.
- For a redesign round,
get_design_briefreturns the prompt pack: withagentset toclaude(the default) Claude Code builds one Design canvas artifact per round, one artboard per surface; withother, any other agent builds local HTML drafts indesign/drafts/<round>/. - Tools marked older setup are the names used before 22 October 2026. They stop answering on 15 December 2026; each names the tool that replaces it. The full rename table is in Migrating to API v2.