as_format_code
Reformat files in a directory using Android Studio's IDE formatter, with automatic backup creation before applying changes.
Instructions
Reformat files in place using the IDE's formatter (studio64.exe format).
Backups of every affected file are written to the server backup dir before formatting. Requires confirm=true.
Args: params (FormatInput): target, mask, recursive, confirm.
Returns: str: JSON with the formatter output and the list of backups created.
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_format_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |