Read a component
read_componentRead a TypeScript custom component by class name. Returns the Asset ID and numbered source. Required offset and limit (null for the standard window) window the source. Line numbers are a map; do not copy them into patch_component find. An empty name lists every custom component and its asset id, and the shared modules. name shared/ reads a shared module (src/components/custom/shared/.ts). Does not list uploaded media; use search_assets. Does not list the published elements library; use search_elements. Does not write source. Place the component with patch_film using the returned Asset ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component class name, or shared/<name> for a shared module. Empty lists every custom TypeScript component and shared module. | |
| limit | Yes | Number of source lines to return. Pass null to read through the cap. | |
| offset | Yes | 1-indexed start line of the source. Pass null with limit to read from the start. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |