Test a model connection
check_ai_connectionTests whether Slatebox can reach a saved or new model connection, accept its key, list models, and get an answer with tool calls before the agent drafts. Saves nothing.
Instructions
Test whether Slatebox can reach a model connection (a provider key, or an OpenAI-compatible endpoint) before the Slatebox agent drafts with it.
Test AI. Tests your own or your team's saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. On Slatebox Cloud an address must be public https; on a self-hosted Slatebox a model on the host is at host.docker.internal, not localhost.
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": "check_ai_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| level | No | me (yours) or team (team admins). | |
| confirm | No | The confirmation id from a confirmation_required result, once the person agreed. | |
| connection | No | ||
| idempotencyKey | No | Send with confirm: the idempotencyKey from the confirmation_required result. |