Apktool MCP Server

modify_resource_file

Update specific resource files in an APKTool project by defining the resource type, file name, and new content. Optionally create backups for safe modifications.

Instructions

Modify the content of a specific resource file.

Args: project_dir: Path to the APKTool project directory resource_type: Resource type (e.g., "layout", "values") resource_name: Name of the resource file new_content: New content for the resource file create_backup: Whether to create a backup of the original file

Returns: Dictionary with operation results

Input Schema

NameRequiredDescriptionDefault
create_backupNo
new_contentYes
project_dirYes
resource_nameYes
resource_typeYes

Input Schema (JSON Schema)

{ "properties": { "create_backup": { "default": true, "title": "Create Backup", "type": "boolean" }, "new_content": { "title": "New Content", "type": "string" }, "project_dir": { "title": "Project Dir", "type": "string" }, "resource_name": { "title": "Resource Name", "type": "string" }, "resource_type": { "title": "Resource Type", "type": "string" } }, "required": [ "project_dir", "resource_type", "resource_name", "new_content" ], "title": "modify_resource_fileArguments", "type": "object" }
ID: jtugu4w3w9