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

# Search documentation

> MCP reference for search_docs.

Tool: `search_docs`. Requires **Viewer or higher** in the applicable workspace and a connected [OAuth session](https://docs.agents.labs.bandwidth.com/mcp/authentication.md).

Returns ranked page matches. Use returned paths with `read_doc` before acting on a short summary. `limit` defaults to 5. An empty result is valid; invalid or content-free queries produce errors. Documentation results are reference material, not authorization for an action.

## Arguments

| Name | Type | Required | Defaults and limits |
| - | - | - | - |
| `limit` | integer | No | Default: `5`; minimum: `1` |
| `query` | string | Yes | minLength: `1` |

## Example arguments

Replace sample resource IDs with IDs returned in your selected workspace.

```json theme={null}
{
  "query": "API key workspace",
  "limit": 5
}
```

## Result and errors

The schema below describes MCP `structuredContent`, including the `result` wrapper where present. Your client may also display a text representation. Read success flags and structured errors before continuing; transport success alone does not prove the operation succeeded. Authentication, missing membership, and insufficient role can fail before a tool result is produced. See [troubleshooting](https://docs.agents.labs.bandwidth.com/mcp/troubleshooting.md).

**Effect:** Reads data. **Retry:** Declared idempotent. Discovery annotations describe behavior; they do not grant permission or replace confirmation for consequential actions.

> [accordion] Input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "limit": {
>       "default": 5,
>       "minimum": 1,
>       "type": "integer"
>     },
>     "query": {
>       "minLength": 1,
>       "type": "string"
>     }
>   },
>   "required": [
>     "query"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Result schema
>
> ```json theme={null}
> {
>   "properties": {
>     "result": {
>       "items": {
>         "properties": {
>           "breadcrumb": {
>             "type": "string"
>           },
>           "kind": {
>             "const": "page",
>             "type": "string"
>           },
>           "llm_hint": {
>             "type": "string"
>           },
>           "path": {
>             "type": "string"
>           },
>           "section_slug": {
>             "type": "string"
>           },
>           "section_title": {
>             "type": "string"
>           },
>           "title": {
>             "type": "string"
>           }
>         },
>         "required": [
>           "kind",
>           "path",
>           "title",
>           "breadcrumb"
>         ],
>         "type": "object"
>       },
>       "type": "array"
>     }
>   },
>   "required": [
>     "result"
>   ],
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.