read_file
Retrieves a file's full text plus its version, revision, and change actor so you can review content and keep the version ID for later edits.
Instructions
Read a file's full text. Returns content, version_id, revision, who changed it (actor_id, agent_id). Keep version_id to edit the file later.
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_id": "<file_id>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID from list_files. | |
| version_id | No | Optional version ID; omit for the current version. |