execute_query
Run raw SQL queries on Android app databases (SQLite/Room) via ADB, supporting both reads and writes.
Instructions
Executes a raw SQL query on a cached database. Can be used for SELECT or write operations (INSERT/UPDATE/DELETE).
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": {
"appId": "<appId>",
"dbName": "<dbName>",
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The Android package name | |
| query | Yes | The raw SQL query to execute | |
| dbName | Yes | The name of the database file | |
| params | No | Optional array of parameters for the query (e.g. [1, 'test']) |