stitch_to_ir
Parses Stitch screen HTML into a platform-neutral layout IR (JSON) for downstream SwiftUI, Jetpack Compose, or standalone HTML generation.
Instructions
Parse a Stitch screen into the platform-neutral layout IR (JSON).
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": "stitch_to_ir"
}
}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. |