Run an allowed Computer Agent tool

Runs one tool returned by the Computer Agent tool catalog and returns its result. Prefer a purpose-built endpoint when one is available.

OpenAPI

````yaml post /api/v2/computer/accounts/{targetAccountId}/tools/invoke
openapi: 3.0.0
info:
version: 2.0.0
title: GetVoiceBot API
description: GetVoiceBot API Documentation
servers:
- url: https://api.getvoicebot.com
description: GetVoiceBot Production
variables:
baseUrl:
default: api.getvoicebot.com
description: Production API Root
security: []
tags:
- name: Agents
- name: Inbound Email
description: Control which senders may create inbound email work for an Agent.
- name: Features
description: Inspect capabilities available within an account hierarchy.
- name: Conversation Logs
description: Query conversation activity and calculate account-level metrics.
- name: Computer Agents
description: Set up, configure, inspect, and manage GetVoiceBot Computer Agents.
- name: Computer Agent Sessions
description: View and reset Computer Agent sessions.
- name: Accounts
- name: Agent Templates
description: Create, manage, and apply reusable Agent configurations.
paths:
/api/v2/computer/accounts/{targetAccountId}/tools/invoke:
post:
tags:
- Computer Agents
summary: Run an allowed Computer Agent tool
description: >
Runs one tool returned by the Computer Agent tool catalog and returns
its result. Prefer a purpose-built endpoint when one is available.
operationId: toolsPostToolsInvoke
parameters:
- name: targetAccountId
in: path
required: true
description: ''
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- tool
properties:
tool:
type: string
description: Tool name returned by the tool catalog.
args:
type: object
additionalProperties: true
description: Arguments accepted by the selected tool.
action:
type: string
description: Optional action supported by the selected tool.
dryRun:
type: boolean
description: >-
Ask the tool to validate or preview the operation without
applying it.
sessionKey:
type: string
description: Optional known session to continue for this Computer Agent.
responses:
'200':
description: Successful response
security:
- apiKeyAuth: []
components:
securitySchemes:
apiKeyAuth:
type: apiKey
in: query
name: token
description: GetVoiceBot API Token

````