modx_update_media_source
Update a MODX media source by merging a properties map into its params, preserving existing values, to set basePath, baseUrl, or other configuration.
Instructions
Update a media source. 'properties' is a {name:value} map merged into the source's params (others preserved) — use it to set basePath/baseUrl/etc.
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": {
"id": "<id>"
},
"name": "modx_update_media_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| properties | No | {paramName: value} map merged into the source. | |
| description | No |