Get code to call a workflow or agent
get_integration_codeReady-to-paste code (curl, TypeScript and Python) to call a deployed workflow or an agent from the person's own app, with the real deployment, variant and inputs, plus the webhook trigger URL for a workflow. Pass workflow_id or agent_id. A workflow must be deployed first (deploy_workflow). The API key is read from the FETCH_HIVE_API_KEY environment variable; no keys or secrets are returned, and you should never ask the person to paste one into chat.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_integration_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | An agent. | |
| workflow_id | No | A deployed workflow. |