tool_sharing
Copy a tool to one or many agents or share it across a workspace, while controlling access and keeping shared edits consistent for every agent that uses it.
Instructions
Copy a tool to other agents or share one tool across the workspace. A COPY is independent afterwards; a SHARED tool stays one tool used by many agents, so editing it changes all of them. Actions: copy — copy a tool to one agent Needs: toolId, targetAgentId. | copy_to_agents — copy a tool (and its variables) to many agents Needs: toolId, targetAgentIds, tool. | set_access — choose who can use the tool: private, whole workspace, chosen agents or client orgs Needs: toolId, agentId, tool, access. | publish_workspace — publish the tool to every agent of the workspace Needs: toolId, agentId, tool. | make_private — stop sharing: the tool belongs to one agent again Needs: toolId, agentId. | share — share an existing tool with the workspace or an org Needs: toolId, scope. | update_shared — edit a shared tool (affects every agent using it) Needs: toolId, tool. | unassign_shared — remove a shared tool from one agent Needs: toolId, agentId. | delete_shared — delete a shared tool for everyone (confirm first) Needs: toolId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact (default) = light mode: long text is cut and bulky blobs are replaced by a size marker. full = complete API response. | |
| tool | No | Full tool definition (from get_agent_tool) where the action needs it. | |
| orgId | No | ||
| scope | No | ||
| access | No | ||
| action | Yes | ||
| orgIds | No | For set_access=clients. | |
| toolId | No | ||
| agentId | No | Agent that owns / uses the tool. | |
| agentIds | No | For set_access=agents. | |
| variables | No | Variables the tool uses, to copy with it. | |
| targetAgentId | No | ||
| targetAgentIds | No | Up to 40 agents. | |
| confirmOverwrite | No |