read_component
Read a React component from a Design OS export package, returning its source code and parsed metadata including imports, Tailwind classes, props interface, and callbacks.
Instructions
Read a specific React component from the export package and return its source code with parsed metadata (imports, Tailwind classes, icon imports, props interface, callbacks)
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": {
"exportPath": "<exportPath>",
"section": "<section>",
"component": "<component>"
},
"name": "read_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | Section ID (e.g. 'sessions', 'personas') or 'shell' for shell components | |
| component | Yes | Component filename (e.g. 'SessionList.tsx') | |
| exportPath | Yes | Path to the product-plan export directory |