Tool Calling
Search tools by query
Changed onRanks tools in the environment against a natural-language query and returns the best matches, drawn from every connection enabled in the environment. Pass identifier to also annotate each result with per-connection readiness (TOOL_READINESS_STATE_READY, TOOL_READINESS_STATE_NEEDS_CONNECTION, TOOL_READINESS_STATE_NEEDS_REAUTH) for that identifier, so you can gate execution on the right auth step before calling ExecuteTool. An empty connections array means the identifier has no connection at all for that tool's provider -- not an error, and distinct from TOOL_READINESS_STATE_NEEDS_CONNECTION (a connected account exists but is inactive).
post/api/v1/tools:search
Request
- Base URLhttps://$SCALEKIT_ENVIRONMENT_URL
- AuthOAuth 2Client credentialsToken URLhttps://$SCALEKIT_ENVIRONMENT_URL/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"identifier": "user@example.com",
"query": "send a message to a slack channel",
"top_k": 10
}Response
Ranked tools matching the query, with per-identifier readiness when an identifier is supplied
Example response
{
"tools": [
{
"connections": [
{
"connected_account_id": "ca_123",
"connection_name": "Acme Slack"
}
],
"description": "Send a message to a Slack channel or user",
"name": "slack_send_message",
"provider": "SLACK",
"score": 0.82
}
]
}Changes
- info
endpoint added
- info