modify_resource_file
Modify the content of a specific resource file in an APKTool project, with backup and validation options for safe updates.
Instructions
Modify the content of a specific resource file with validation and backup support.
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": {
"project_dir": "<project_dir>",
"resource_type": "<resource_type>",
"resource_name": "<resource_name>",
"new_content": "<new_content>"
},
"name": "modify_resource_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_content | Yes | New content for the resource file | |
| project_dir | Yes | Path to the APKTool project directory | |
| create_backup | No | Whether to create a backup of the original file | |
| resource_name | Yes | Name of the resource file | |
| resource_type | Yes | Resource type (e.g., "layout", "values") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||