modx_update_media_file
Overwrite file content inside a MODX media source by providing the source ID or name, path within the source, and new body.
Instructions
Overwrite a file's content inside a media source. source = id/name, path = file path within the source, content = new body.
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": {
"source": "<source>",
"path": "<path>",
"content": "<content>"
},
"name": "modx_update_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes | ||
| content | Yes |