set_document_tag
Add or remove a single tag assignment on one document. Use it to organize or unlabel a document with existing tags; removing an assignment keeps the tag itself intact.
Instructions
Add or remove an existing tag assignment on one document. Use batch_documents for the same tag action across multiple explicit IDs. Requires edit access to each document; action=remove preserves the tag itself.
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": {
"action": "<action>",
"documentId": "<documentId>",
"tagId": "<tagId>"
},
"name": "set_document_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagId | Yes | UUID returned by the corresponding list or read operation. | |
| action | Yes | Add or remove exactly one tag assignment. | |
| documentId | Yes | UUID returned by the corresponding list or read operation. | |
| workspaceId | No | Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||