Set session defaults
session_set_defaultsDefine default projectDir, module, variant, serial, and appId so other Android build tools can skip repeating them. Set these once after discovering the project.
Instructions
Set default projectDir/module/variant/serial/appId used by other tools when the corresponding argument is omitted. Set these once after discovering the project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "session_set_defaults"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | Application id (package name) | |
| module | No | Gradle module, e.g. 'app' | |
| serial | No | adb device serial, e.g. emulator-5554 | |
| variant | No | Build variant, e.g. 'debug' | |
| projectDir | No | Absolute path to the Gradle project root |