Publish an agent as a share page
share_agentMake a public chat link for an agent, the Share button in the agent editor: anyone with the link can chat with a frozen copy of the agent (a few messages per visitor, monthly limits apply), billed to this account. One page per agent; change it later with update_share. Agents that use connected accounts, knowledge bases, MCP servers, sub-agents, workflows or a personal model key cannot be shared; the call says which. Call it first without approved: it checks the agent and returns the page copy it would publish (pass draft_copy: true to have the copy written for you). Show the person, then call again with approved: true and the copy they agreed to.
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": {
"agent_id": "<agent_id>"
},
"name": "share_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | What visitors see on the agent's page. All five text fields are required unless draft_copy is true. | |
| agent_id | Yes | The agent to share. | |
| approved | No | true only after the person has agreed to publish this page. | |
| campaign | No | The Campaign tag (e.g. GRO-264). Private: visitors never see it. | |
| draft_copy | No | Draft any copy fields you left out. Default false. | |
| customer_label | No | The Customer label tag (e.g. the lead's company). Private: visitors never see it. |