fetch_astryx_contract
Retrieve the authoritative Astryx component contract as JSON: get the component index or exact props tables with enum values to avoid generating invalid prop variants.
Instructions
Fetch the authoritative Astryx component contract as JSON: component index (categories + import paths) or, when components is given, the exact props table per component (types, required flags, enum values). Use the enum values to avoid inventing props — this is the machine-readable source of truth, so generated code contains no hallucinated variants. Max 100 components per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectRoot": "<projectRoot>"
},
"name": "fetch_astryx_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | Bypass the on-disk contract cache | |
| components | No | Component names to resolve (e.g. ["Button","Badge"]). Omit to get the full component index instead. | |
| projectRoot | Yes | Absolute path to the project root | |
| includeManifest | No | Also include the CLI manifest (commands + global options) |