DEBYKO connect a channel
agent_channel_connectConnects a channel for Agent alerts. {kind: "telegram"} returns a one-time link to @debyko_bot (it works once, for 10 minutes) and the steps; {kind: "email"} emails a confirmation link to the account's address; {kind: "webhook", url} adds the webhook, sends it a test message and returns its status. First ask the user which they want, and for a webhook its public https:// address. Give the user next as numbered steps, link exactly as returned; after they say they pressed Start or confirmed, check with agent_channels. The webhook's signing key is never returned here: next says where the user gets it. Not counted on your key.
Use this when the account has no channel for an alert, or the user wants another one; to see the channels it has use agent_channels.
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": {
"kind": "<kind>"
},
"name": "agent_channel_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | With `webhook`: the receiver's public https:// address. Not used with `telegram`. | |
| kind | Yes | `telegram`: a link the user opens to link their chat. `email`: the account's address. `webhook`: an https:// receiver of the user's. | |
| name | No | With `webhook`: a name for it; the host of the address when left out. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||