Add or change a custom connector
set_connectorConnect an outside service with an HTTPS API to a site, or replace a connector with the same key. Declare only the actions the pages need. Never ask the owner to paste a key, token or password into the chat, and never put one in a connector, a page or a file. The owner saves the key in the dashboard; the result gives the link. Changing the host or the kind of sign-in removes the saved key, so the owner has to save it again. Read the service's API documentation first (ask the owner for it), then check each action with test_connector.
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": {
"site": "<site>",
"key": "<key>",
"name": "<name>",
"base_url": "<base_url>",
"actions": "<actions>"
},
"name": "set_connector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Short name the pages use, e.g. "crm" or "newsletter" (lowercase letters, numbers, _). | |
| auth | No | How the service takes its key: { type: "bearer" } (Authorization: Bearer <key>), { type: "header", name: "X-Api-Key" }, { type: "query", name: "api_key" }, { type: "basic" } (owner types user:password) or { type: "none" }. The key itself is never given here. | |
| name | Yes | What the owner and visitors see, e.g. "Mailchimp newsletter". | |
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| actions | Yes | ||
| headers | No | Fixed headers that are not secret, e.g. { "Accept-Language": "en" }. | |
| base_url | Yes | Start of every request, https only, e.g. "https://api.example.com/v1". |