Actions31
Tool → Update
AI-generatedSummary
Update an existing Vapi tool by its ID, configuring its type and specific parameters according to the selected Tool Type.
Inputs
- Tool Type (required) — Select the type of the tool to update, such as Function, API Request, Code, Slack Send Message, etc.
- Tool ID (required) — The unique identifier of the tool to update.
- Function Definition (JSON) — For Function or Code tool types, provide a JSON schema defining the function parameters and details.
- Server URL — For Function tools, specify the webhook server URL to receive tool call messages.
- HTTP Method — For API Request tools, specify the HTTP method used (e.g., POST, GET).
- Request URL (required) — For API Request tools, specify the URL that the API request tool will call.
- Code (TypeScript) — For Code tools, provide the TypeScript code to execute on the Vapi infrastructure.
- Timeout Seconds — For Code tools, set the execution timeout in seconds (between 1 and 30).
- Integration Fields — For specific integrations like GoHighLevel, Google Calendar, Slack, etc., specify integration-related fields.
- Additional Fields — Optional additional settings such as async flag, body schema, description, headers schema, messages array, name, parameters array, raw JSON body, or full server object overriding Server URL.
Output shape
a single record
Returns the updated tool object as JSON. Structured fields are merged with any raw JSON provided, allowing full customization of the tool configuration.