files_read_code
Returns the SOURCE CODE of a code cell (Python, SQL connection, or Formula) at a given cell, plus its run stdout/stderr. files_read returns only the computed DISPLAY values; use this to see (and then modify) the actual code. Pass any cell within the code cell's output — the anchor is resolved automatically. Returns code_cell: null when there is no code cell there. Signature: files_read_code(file_uuid, cell, sheet?).
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": {
"file_uuid": "<file_uuid>",
"cell": "<cell>"
},
"name": "files_read_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | A cell (A1) at or inside the code cell, e.g. 'B2'. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| file_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_cell | Yes | ||
| file_uuid | Yes |