Edit a text media asset
edit_mediaEdit existing text/report assets directly using find-and-replace, append, or prepend operations. Saves changes as a new version while archiving the prior copy.
Instructions
Directly edit an existing text/report asset (find/replace, append, or prepend) and save the result as a new version — the prior copy is archived (edit-media). For images, use refine_media or image generation instead.
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": "<project>",
"name": "<name>"
},
"name": "edit_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Text to replace (all occurrences). | |
| name | Yes | Gallery asset (a text/report asset: .html/.svg/.txt/.md…). | |
| append | No | ||
| prepend | No | ||
| project | Yes | ||
| replace | No | Replacement for 'find' (default: remove). |