files.move_file
Move a stored file to a new account-relative path.
Pass source_file_name from files.list_uploaded_files and the desired destination_file_name. The file is copied to the new path and the source is removed. Any linked upload session is updated to the new path.
Cost = 0 tokens.
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": {
"source_file_name": "<source_file_name>",
"destination_file_name": "<destination_file_name>"
},
"name": "files.move_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_file_name | Yes | Current relative file name or path. Use files.list_uploaded_files to see available names. | |
| destination_file_name | Yes | New relative file name or path. Must not already exist in account storage. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_file_name | No | Previous file name. | |
| destination_file_name | No | New file name after the move. |