> ## Documentation Index
> Fetch the complete documentation index at: https://vida.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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: Vida API
  description: Vida API Documentation
servers:
  - url: https://api.vida.dev
    description: Vida Production
    variables:
      baseUrl:
        default: api.vida.dev
        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 Vida 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: Vida API Token

````