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

# search_knowledge_base

> Searches the workspace knowledge base (documents, notes, links the user saved) by meaning and keywords and returns the best passages with a score.

{/* Generated by apps/docs/scripts/generate.ts. Do not edit by hand. */}

**Search the knowledge base** · Your setup

Searches the workspace knowledge base (documents, notes, links the user saved) by meaning and keywords and returns the best passages with a score. Read-only.

* **Credits:** Free
* **Needs confirmation:** no
* **In the ChatGPT app:** yes

## Input

**query** `string` *required*

Length 2–500.

**limit** `integer`

Range 1–10. Default: `5`.

**workspace** `string`

Workspace id or exact name. Required when this connection can use more than one workspace (see list\_workspaces). Length 1–200.

## Example call

```json Tool call
{
  "name": "search_knowledge_base",
  "arguments": {
    "query": "<query>"
  }
}
```

## Related

* [All MCP tools](/mcp/tools.md)
* [Connect an assistant](/mcp/quickstart.md)
* [Limits and errors](/mcp/limits-and-errors.md)
