Accounts
Calls, Messages, Stages
Corpora, Query, Sources
Webhooks
List Call Tools
Returns all tools that were available at any point during the call
curl --request GET \
--url https://api.ultravox.ai/api/calls/{call_id}/tools \
--header 'X-API-Key: <api-key>'
[
{
"callToolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"definition": {
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"value": "<any>"
}
],
"automaticParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"knownValue": "KNOWN_PARAM_UNSPECIFIED"
}
],
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>",
"authHeaders": [
"<string>"
],
"authQueryParams": [
"<string>"
],
"callTokenScopes": [
"<string>"
]
},
"client": {},
"defaultReaction": "AGENT_REACTION_UNSPECIFIED"
}
}
]
Authorizations
API key
Path Parameters
Response
The possibly overridden name of the tool.
A tool as used for a particular call (omitting auth details).
The description of the tool.
The parameters presented to the model.
A dynamic parameter the tool accepts that may be set by the model.
The name of the parameter.
Where the parameter is used.
PARAMETER_LOCATION_UNSPECIFIED
, PARAMETER_LOCATION_QUERY
, PARAMETER_LOCATION_PATH
, PARAMETER_LOCATION_HEADER
, PARAMETER_LOCATION_BODY
The JsonSchema definition of the parameter. This typically includes things like type, description, enum values, format, other restrictions, etc.
Whether the parameter is required.
Parameters added unconditionally when the tool is invoked.
A static parameter that is unconditionally added when the tool is invoked. This parameter is not exposed to or set by the model.
The name of the parameter.
Where the parameter is used.
PARAMETER_LOCATION_UNSPECIFIED
, PARAMETER_LOCATION_QUERY
, PARAMETER_LOCATION_PATH
, PARAMETER_LOCATION_HEADER
, PARAMETER_LOCATION_BODY
The value of the parameter.
Parameters automatically set by the system.
A parameter that is automatically set by the system.
The name of the parameter.
Where the parameter is used.
PARAMETER_LOCATION_UNSPECIFIED
, PARAMETER_LOCATION_QUERY
, PARAMETER_LOCATION_PATH
, PARAMETER_LOCATION_HEADER
, PARAMETER_LOCATION_BODY
The value to set for the parameter.
KNOWN_PARAM_UNSPECIFIED
, KNOWN_PARAM_CALL_ID
, KNOWN_PARAM_CONVERSATION_HISTORY
, KNOWN_PARAM_OUTPUT_SAMPLE_RATE
, KNOWN_PARAM_CALL_STATE
The maximum amount of time the tool is allowed for execution. The conversation is frozen while tools run, so prefer sticking to the default unless you're comfortable with that consequence. If your tool is too slow for the default and can't be made faster, still try to keep this timeout as low as possible.
The tool is guaranteed to be non-mutating, repeatable, and free of side-effects. Such tools can safely be executed speculatively, reducing their effective latency. However, the fact they were called may not be reflected in the call history if their result ends up unused.
Details for an HTTP tool.
The base URL pattern for the tool, possibly with placeholders for path parameters.
The HTTP method for the tool.
Auth headers added when the tool is invoked.
Auth query parameters added when the tool is invoked.
If the tool requires a call token, the scopes that must be present in the token. If this is empty, no call token will be created.
Details for a client-implemented tool. Only body parameters are allowed for client tools.
Indicates the default for how the agent should proceed after the tool is invoked. Can be overridden by the tool implementation via the X-Ultravox-Agent-Reaction header.
AGENT_REACTION_UNSPECIFIED
, AGENT_REACTION_SPEAKS
, AGENT_REACTION_LISTENS
, AGENT_REACTION_SPEAKS_ONCE
curl --request GET \
--url https://api.ultravox.ai/api/calls/{call_id}/tools \
--header 'X-API-Key: <api-key>'
[
{
"callToolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"definition": {
"description": "<string>",
"dynamicParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"schema": {},
"required": true
}
],
"staticParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"value": "<any>"
}
],
"automaticParameters": [
{
"name": "<string>",
"location": "PARAMETER_LOCATION_UNSPECIFIED",
"knownValue": "KNOWN_PARAM_UNSPECIFIED"
}
],
"timeout": "<string>",
"precomputable": true,
"http": {
"baseUrlPattern": "<string>",
"httpMethod": "<string>",
"authHeaders": [
"<string>"
],
"authQueryParams": [
"<string>"
],
"callTokenScopes": [
"<string>"
]
},
"client": {},
"defaultReaction": "AGENT_REACTION_UNSPECIFIED"
}
}
]