rename_node
Rename a file or folder in place by node ID or absolute path, keeping it in the same folder and returning the updated node.
Instructions
Rename one file or folder in place (it stays in the same folder), identified by node_id or absolute path. Fails with NAME_CONFLICT if a sibling already has the new name, and with NOT_FOUND for items in the trash. Returns the updated node. To put it in another folder use move_nodes; to rename many items, call this once per item. Requires files:write; pass idempotency_key to make retries safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | new file or folder name | |
| path | No | absolute node path instead of node_id | |
| node_id | No | node UUID | |
| idempotency_key | No | stable retry key, maximum 128 bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| mime | No | ||
| name | Yes | ||
| path | No | ||
| size | No | ||
| sha256 | No | ||
| parent_id | No | ||
| updated_at | Yes | ||
| stats_stale | No | ||
| subtree_bytes | No | ||
| subtree_count | No |