Edit Discord Bot File
mutate_discord_bot_fileCreate, rename, delete, or write Discord bot file content. Destructive actions require confirm=true. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"action": "<action>",
"path": "<path>"
},
"name": "mutate_discord_bot_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| action | Yes | ||
| confirm | No | ||
| content | No | ||
| newName | No | ||
| serviceId | Yes | ID of the Discord bot: the "id" field from list_account_services or list_discord_bots (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. | |
| expectedRevision | No | `revision` returned when the file was read. With action `write` the write is refused (409 file_changed) when the file changed since; re-read and retry. |