Get an AI Canvas component (full metadata + source code)
get_componentFetch the complete record for a component, including metadata and full .tsx source code, to inspect the exact implementation before installing it in your project.
Instructions
Return the complete record for a single component: metadata + the entire .tsx source code as a string. Use after the user picks one from a search/list result and wants to see the implementation, or before installing if they want to inspect first. The source is the exact file the CLI install would write into a project.
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": {
"slug": "<slug>"
},
"name": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The component slug, e.g. "ai-job-cards", "wave-lines", "halo-type". Use exact slugs from list/search results. |