Skip to Content
Docs
ReferenceOrganise

move_file

Move files and folders

Moves files and folders of a project the user can edit into one folder, in a single call. Pass each item's entry_id from list_folder, never a media_id, and folder_id "root" for the project root or a folder's entry_id. A memory never moves inside another memory, and no other file named Memory.md moves into one: a memory reads its instructions only from its own Memory.md.

Arguments

ArgumentTypeRequiredWhat it is
project_idstringYesThe project's project_id.
entry_idsarray of stringYesThe entry_id of each file and folder to move.
folder_id"root" | stringYes"root", or the entry_id of the folder to move them into.

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": "move_file",    "arguments": {      "project_id": "<string>",      "entry_ids": "<array of string>",      "folder_id": "<\"root\" | 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_ids": {      "minItems": 1,      "maxItems": 25,      "type": "array",      "items": {        "type": "string",        "minLength": 1,        "maxLength": 128,        "pattern": "^[A-Za-z0-9_-]+$"      },      "description": "The entry_id of each file and folder to move."    },    "folder_id": {      "anyOf": [        {          "type": "string",          "const": "root"        },        {          "type": "string",          "minLength": 1,          "maxLength": 128,          "pattern": "^[A-Za-z0-9_-]+$"        }      ],      "description": "\"root\", or the entry_id of the folder to move them into."    }  },  "required": [    "project_id",    "entry_ids",    "folder_id"  ]}

Answer

The answer's structuredContent follows this schema, and its text holds the same JSON.

{  "type": "object",  "properties": {    "entry_ids": {      "type": "array",      "items": {        "type": "string"      }    },    "folder_id": {      "type": "string"    }  },  "required": [    "entry_ids",    "folder_id"  ],  "additionalProperties": false}