ReferenceOrganise
rename_file
Rename a file or a folder
Renames a file or a folder in a project the user can edit; a file's name applies to its Drive entry and its content. Pass the entry_id from list_folder, never a media_id. Two folders side by side can't share a name, and a memory's folder can't take the name of another of the user's memories. A memory reads its instructions from its Memory.md: that file keeps its name, and no other file in a memory can be named Memory.md; the user edits a memory's instructions in awen.
- Permission:
awen:write - Also an API operation:
POST /api/v1/rename_file
Arguments
| Argument | Type | Required | What it is |
|---|---|---|---|
project_id | string | Yes | The project's project_id. |
entry_id | string | Yes | The entry_id of the file or folder. |
name | string | Yes | The new name. |
Call
A host sends a tools/call request to the MCP endpoint, with the arguments it needs.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "rename_file", "arguments": { "project_id": "<string>", "entry_id": "<string>", "name": "<string>" } }}Arguments schema
{ "type": "object", "properties": { "project_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "description": "The project's project_id." }, "entry_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "description": "The entry_id of the file or folder." }, "name": { "type": "string", "minLength": 1, "maxLength": 2083, "pattern": "^[^\\x00]*$", "description": "The new name." } }, "required": [ "project_id", "entry_id", "name" ]}Answer
The answer's structuredContent follows this schema, and its text holds the same JSON.
{ "type": "object", "properties": { "entry_id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "entry_id", "name" ], "additionalProperties": false}