files.move
Move or rename a knowledge file within its project. Cross-project moves are rejected; use the kind parameter to relocate between dictionary and note trees, preserving subfolders.
Instructions
Move/rename a file. Destination 'new_path' must be absolute and resolve INSIDE the file's owning project or global knowledge directory. Cross-project moves are rejected. Alternative: pass kind='dictionary'|'note' (with no new_path) to move a KB file into the mirrored path in the other class tree — subfolder path is preserved. Operates locally with no auth or limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Move the file to the mirrored path in the other class tree. Subfolder path is preserved: knowledge/dictionary/slt/ids.md ↔ knowledge/notes/slt/ids.md. Ignored if `new_path` is also provided. | |
| file_id | Yes | File ID | |
| new_path | No | Absolute destination path |