extract_tokens
Extracts Stitch design tokens such as colors and spacing into SwiftUI, Jetpack Compose, or CSS :root themes, enabling agents to map screen styles into native code.
Instructions
Extract Stitch design tokens (colours, spacing) as a SwiftUI theme, a Compose theme or CSS custom properties (:root).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS download URL of the screen HTML (a public https URL; Stitch downloadUrls need OAuth, so pass that HTML via html instead). | |
| html | No | Stitch screen HTML (the export, including the tailwind-config script). | |
| path | No | Path to a Stitch HTML file. Used when html is not given. | |
| platform | No | swiftui |