Label a file
set_file_labelAdd a label to a file or folder, or remove it. Label ids come from list_labels.
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>",
"labelId": "<labelId>",
"assigned": "<assigned>"
},
"name": "set_file_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file id | |
| labelId | Yes | The label id | |
| assigned | Yes | true adds the label, false removes it |