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

# Accessibility

> Get the full UI accessibility tree

Returns the full JSON representation of the UI's accessibility tree. This is useful for programmatic UI state inspection and understanding the current state of the desktop interface.

<Note>
  Replace `VM_API_IP:PORT` with the actual IP and port of the VM's Desktop Environment API server.
</Note>

## Response

Returns a JSON representation of the UI accessibility tree. The structure varies by operating system and current application state.

<ResponseField name="[accessibility_tree]" type="object">
  Full JSON representation of the UI accessibility tree, containing elements with their roles, names, and hierarchical relationships
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "http://VM_API_IP:PORT/accessibility"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "role": "application",
    "name": "Desktop",
    "children": [
      {
        "role": "window",
        "name": "Document - Microsoft Word",
        "children": [
          {
            "role": "menu_bar",
            "name": "Menu Bar",
            "children": [
              {
                "role": "menu_item",
                "name": "File"
              },
              {
                "role": "menu_item",
                "name": "Edit"
              }
            ]
          },
          {
            "role": "document",
            "name": "Document Content",
            "value": "Hello, World!"
          }
        ]
      }
    ]
  }
  ```
</ResponseExample>
