session_set_defaults
Set a default project directory or device serial for the session, eliminating the need to repeat them on every Gradle or device call. Individual calls can still override these defaults.
Instructions
Pin a default project_dir and/or serial for the rest of this session so later calls can omit them — the fix for a multi-module or multi-flavor project (or multiple attached devices) forcing you to repeat the same project_dir/serial on every Gradle or device call. Only the fields you pass are changed; omit a field to leave its current default alone. An explicit project_dir/serial on any individual call always overrides the session default for that one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Default device serial to use whenever a tool call omits serial. Leave empty to leave the current default unchanged. | |
| project_dir | No | Default Android project root to use whenever a tool call omits project_dir. Leave empty to leave the current default unchanged. |