host.tool_share
Share one of this tenant's published tools with everyone (visibility: "public") or with a named group this tenant owns (visibility: "group", group: ). The tool keeps running in this tenant's own sandbox with this tenant's own secrets; a caller reaches it as <this tenant's namespace>..
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": {
"name": "<name>",
"visibility": "<visibility>"
},
"name": "host.tool_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Local name of the tool to share. | |
| tags | No | Catalog tags merged into the tool's existing ones (same rules as host.tool_publish). | |
| group | No | Required when visibility is "group"; must already exist (host.group.create). | |
| scopes | No | What the grantee may do: call, read_source, fork. Default ["call"] (["call","read_source"] with expose_spec: true). url shares allow only call. | |
| tenant_key | No | The key `signup` returned. Optional on the connection that ran signup (or host.redeem): that connection is already bound to the tenant it created, so later calls on it need no tenant_key. On a connection with no Authorization: Bearer header and no prior signup, omitting it implicitly signs that connection up as a brand-new tenant and runs this call as it -- see host.whoami's source field. When both a header and this argument are present, the header wins. | |
| visibility | Yes | "public" (needs a passing dry run of the current version), "unlisted", "group" or "url". | |
| description | No | Catalog-facing blurb; shown by host.catalog.search/get. | |
| expose_spec | No | Default false. When true, any tenant this tool is shared with may call host.tool_spec_shared to read its (redacted) spec. | |
| rate_per_hour_per_caller | No | Optional cap (1..10000) on calls per hour from any one grantee. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| name | Yes | ||
| next | No | ||
| group | Yes | ||
| visibility | Yes | ||
| description | Yes | ||
| expose_spec | Yes | ||
| welcome_back | No |