Search tools
Ranks the tools in your environment against a plain-language query, such as send an email, and returns the best matches from every connection. Pass identifier to see, for each result, whether that user can call it now: each entry in connections has a readiness_state of TOOL_READINESS_STATE_READY, TOOL_READINESS_STATE_NEEDS_CONNECTION (the account exists but isn't active) or TOOL_READINESS_STATE_NEEDS_REAUTH. Check it before you execute the tool. An empty connections list means the user has no account on any connection for that tool's provider; it isn't an error.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
querystringrequiredidentifierstringtop_kintegerscalekit_client.actions.search_tools
Ranks the tools a user can call by how well they match a plain-language query. Pass identifier to get each result's connections, with a readiness_state of READY, NEEDS_CONNECTION or NEEDS_REAUTH per connection. Check it before you execute the tool.
scalekit_client.actions.search_tools( query: str, identifier: Optional[str] = None, top_k: Optional[int] = None,) -> SearchToolsResponseParameters
querystrrequiredidentifierOptional[str]top_kOptional[int]Returns SearchToolsResponse: SearchToolsResponse with tools (each a SearchedTool with name, provider, description, score and connections)
From scalekit-sdk-python 2.25.0.
Also called by scalekit_client.tools.search_tools.
scalekit.actions.searchTools
Ranks the tools a user can call by how well they match a plain-language query. Pass identifier to get each result's connections, with a readinessState per connection. Check it before you execute the tool.
scalekit.actions.searchTools( query: string, options?: { identifier?: string; topK?: number; },): Promise<SearchToolsResponse>Parameters
querystringrequiredidentifierstringtopKnumberReturns Promise<SearchToolsResponse>.
From @scalekit-sdk/node 2.22.0.
Also called by scalekit.tools.searchTools.
Response 200
toolsarray of objectShow 5 child attributes
connectionsarray of objectreadiness_state. Returned only when the request has identifier. Empty when the user has no account on any of them. More than one entry means the user has accounts on several connections, such as two Slack workspaces.Show 3 child attributes
connected_account_idstringreadiness_state is TOOL_READINESS_STATE_READY.connection_namestringreadiness_statestring (enum)TOOL_READINESS_STATE_READYTOOL_READINESS_STATE_NEEDS_CONNECTIONTOOL_READINESS_STATE_NEEDS_REAUTHdescriptionstringnamestringtool_name when you execute it.providerstringscorenumberErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - the query is empty or exceeds the maximum length401Authentication required - missing or invalid access token