as_open_file
Open a file in Android Studio, optionally at a specific line and column, by reusing the running IDE window when available.
Instructions
Open a file (optionally at a line/column) in the running Android Studio.
Prefers the built-in IDE server (instant, reuses the running window). Falls back to launching studio64.exe with --line if the server is not reachable.
Args: params (OpenFileInput): file (path), line (optional), column (optional).
Returns: str: JSON describing which method was used and whether it succeeded.
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": {
"params": "<params>"
},
"name": "as_open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |