manage_relationship
Add or remove agent skills, file tags (by editing file content), and workflow sharing with workspace members. Supports bulk tag actions and upsert sharing roles.
Instructions
Manage relationships: add/remove skills on agents, add/remove inline tags on files, and share/unshare a private workflow with an individual workspace member. For type=tag this EDITS THE FILE CONTENT — it writes (or deletes) a # token in the file body, which is the source of truth for a file's tags; the tag is auto-created if new. (Equivalent to updating the file content yourself.) For type=workflow_member, add is an upsert (re-adding an existing member updates their role).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Access level for the shared member (type=workflow_member, action=add). Defaults to viewer. | |
| type | Yes | Relationship type. | |
| value | No | Tag value to add/remove (type=tag), e.g. "urgent". Lowercase letters, digits and hyphens; written into the file content as #<value>. | |
| action | Yes | Action. apply_bulk/remove_bulk: tag multiple files at once (type=tag, max 100). | |
| fileId | No | Single file ID (type=tag, action=add or remove) | |
| userId | No | Target workspace member's user ID to share the workflow with (type=workflow_member) | |
| agentId | No | Agent ID (type=agent_skill) | |
| fileIds | No | Multiple file IDs (type=tag, action=apply_bulk or remove_bulk, max 100) | |
| skillId | No | Skill ID (type=agent_skill) | |
| workflowId | No | Workflow ID (type=workflow_member) | |
| workspaceId | No |