get_component_context
Retrieves design system component documentation from a Markdown file, returning frontmatter, body, and raw content. Lists available components if the requested one is not found.
Instructions
Looks up contexts/.md (case-insensitive) and returns its parsed frontmatter, raw markdown body, and full raw file content. If the component isn't found, returns an error listing the currently available component names.
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": {
"componentName": "<componentName>"
},
"name": "get_component_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | The name of the component to fetch context for, e.g. 'button' |