Search text in a Computer Agent workspace

Finds plain text within a customer-created, workspace-relative file or directory. Results can be limited by file pattern, capitalization, surrounding lines, and maximum count. Agent instructions and settings are not searchable here.

OpenAPI

````yaml post /api/v2/computer/accounts/{targetAccountId}/workspace/search
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}/workspace/search:
post:
tags:
- Computer Agents
summary: Search text in a Computer Agent workspace
description: >
Finds plain text within a customer-created, workspace-relative file or
directory. Results can be limited by file pattern, capitalization,
surrounding lines, and maximum count. Agent instructions and settings
are not searchable here.
operationId: workspacePostWorkspaceSearch
parameters:
- name: targetAccountId
in: path
required: true
description: ''
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
path:
type: string
maxLength: 4096
description: Workspace-relative file or directory to search.
pattern:
type: string
maxLength: 500
description: Plain text to find.
glob:
type: string
maxLength: 500
description: Optional file pattern, such as *.js.
ignoreCase:
type: boolean
description: Set to true to ignore capitalization differences.
context:
type: integer
minimum: 0
maximum: 5
description: Number of surrounding lines to include.
limit:
type: integer
minimum: 1
maximum: 200
description: Maximum number of matches to return.
required:
- path
- pattern
responses:
'200':
description: Successful response
security:
- apiKeyAuth: []
components:
securitySchemes:
apiKeyAuth:
type: apiKey
in: query
name: token
description: GetVoiceBot API Token

````