rename_attachment
Renames an attachment on a page and returns the new relativePath. Update any references in the page body manually, as they are not rewritten.
Instructions
Rename an attachment on a page. Existing references to the old filename in page bodies are NOT rewritten — update them yourself, using the returned relativePath.
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": {
"collectiveId": "<collectiveId>",
"pageId": "<pageId>",
"filename": "<filename>",
"newName": "<newName>"
},
"name": "rename_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| newName | Yes | New filename, including the extension. | |
| filename | Yes | Current attachment filename from list_attachments. | |
| collectiveId | Yes |