Read editor buffer
ide_read_fileRead files exactly as Android Studio shows them, including unsaved edits. Use it instead of reading from disk when the user is actively editing in the IDE.
Instructions
Read a file as Android Studio currently has it, including unsaved edits. Prefer this over reading from disk when the user is editing in the IDE.
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": {
"path": "<path>"
},
"name": "ide_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute file path | |
| endLine | No | ||
| startLine | No |