Read a library element
read_elementRead a published element's source and input definitions by id from search_elements. A long source comes a window of lines at a time: the answer says the offset to read on from.
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": {
"id": "<id>",
"offset": "<offset>",
"limit": "<limit>",
"projectId": "<projectId>"
},
"name": "read_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| limit | Yes | Lines of the source to read. null reads as much as one answer holds; a longer source says the offset to read on from. | |
| offset | Yes | 1-indexed first line of the source to read. null reads 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. |