init_config
Build a stitch-native.json skeleton from a screen's colors, fonts, and icons, merging over an existing config without deleting entries and returning unmapped items to fill in.
Instructions
Build a stitch-native.json skeleton from the colours, fonts and icons a screen uses, merged over an existing config (existing entries win and are never deleted). Only the keys of the requested targets are written (iOS-only: no iconsCompose, no output.compose); an explicit targets is stored in the config. Returns the JSON and the unmapped entries to fill in.
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": "init_config"
}
}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. | |
| targets | No | Ecosystems to emit, out of swiftui, compose, html. Overrides the config's `targets`; without either: swiftui + compose. A comma-separated string is also accepted. | |
| existing | No | Current config to merge into. Without it the config is discovered like for the other tools. | |
| config_path | No | Path to a stitch-native.json. Used when config is not given. |