← MCP Catalog

android_file_replace

Performs literal string replacement in a text file. Uses advisory file locking when supported by the storage provider.

MCPAndroid AuthorizationOAuth on device

Parameters

location_idstring · required

Storage location ID from `android_list_storage_locations`

pathstring · required

Relative path to the file within the storage location

old_stringstring · required

The literal string to search for

new_stringstring · required

The replacement string

replace_allboolean · default false

If `true`, replaces all occurrences; if `false`, replaces only the first