Rename / move a OneDrive file
update_onedrive_fileRename or move a OneDrive item by passing its file ID and optional new name or target folder ID. Use it to reorganize files without deleting them.
Instructions
Update a OneDrive item: rename (name) and/or move it into a folder (moveToFolderId). Pass fileId (from list_onedrive_files). To remove an item, use delete_onedrive_file.
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": {
"fileId": "<fileId>"
},
"name": "update_onedrive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new name | |
| fileId | Yes | the OneDrive item id | |
| moveToFolderId | No | folder id to move the item into (from create_onedrive_folder / list_onedrive_files) |