Get Component Source
get_component_sourceRead an exact component source as complete JSON. Supply sourceVersionId from the selected catalog card to read that immutable revision, retaining sourceSnapshot with its complete versioned definition, manifest and template beside its exact pin and schema metadata. For an explicitly selected builtin, also supply builtinCollection:'native'|'curated-definitions' and its exact sourceVersionId; without builtinCollection resolution is scoped to the authenticated org. An unavailable exact pin refuses; never retry a head or another scope. To fork, keep the version-4 snapshot whole, change its componentId (the template root's data-composition-id too) and template, and send it to create_component. Builtins always require an exact collection and pin; ID-only builtin reads are refused. Declared slots are bound per placement in execution.assets, never caller params.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentId | Yes | componentId (path). | |
| sourceVersionId | No | ||
| builtinCollection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| origin | No | ||
| source | No | ||
| tokens | No | ||
| examples | No | Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back. | |
| manifest | No | ||
| tsxSource | No | ||
| propSchema | No | ||
| description | No | ||
| ejectedFrom | No | ||
| metadataStatus | No | Historical source-only reads omit unavailable discovery name/description instead of borrowing current metadata. | |
| sourceSnapshot | No | Canonical immutable source snapshot (version 4 template, or a retired version 3 TSX module); source remains provenance. | |
| sourceVersionId | No | Exact immutable source pin; distinct from bundle revisions. | |
| durationInFrames | No |