Rename a file
rename_assetRename an asset file in Wiki.js. Be aware that pages embedding the old URL will break, as Wiki.js does not rewrite them.
Instructions
Renames an asset. Pages embedding it by its old URL will break — Wiki.js does not rewrite them.
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": {
"asset_id": "<asset_id>",
"filename": "<filename>"
},
"name": "rename_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | Asset id from list_assets. | |
| filename | Yes | New file name, including extension. | |
| confirm_token | No | Token from this tool’s previous, unconfirmed call. Omit it to receive one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |