Create Tag
create_tagCreates a workspace-level tag entry for future reuse, without attaching it to any document. Use add_tag_to_doc instead when you need to apply a tag to a document.
Instructions
Create a workspace-level tag entry for future reuse. This does not attach the tag to a document; use add_tag_to_doc for that.
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": {
"tag": "<tag>"
},
"name": "create_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag name to create in the workspace tag registry. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tag | No | ||
| code | No | ||
| error | No | ||
| created | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |