Bind a connection to a worker
binding_createBind a connection to a worker for outbound API calls, inbound app triggers, or both. Define the purpose to enable worker-connection interactions.
Instructions
Bind a connection to a worker so the worker can use it. purpose: OUTBOUND (worker calls your API), INBOUND (your app triggers the worker), or BOTH.
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": {
"workerId": "<workerId>",
"connectionId": "<connectionId>"
},
"name": "binding_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | ||
| workerId | Yes | the worker id | |
| connectionId | Yes | the connection id |