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

# search_documents

> Search documents by text, across titles and content.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.linear.app/graphql"}</code></div>

```python linear_search_documents.py theme={null}
from charter.packs import linear

result = await linear.search_documents.ainvoke({"variables": ...})
```

<Note>
  Posts a GraphQL document to `POST /graphql`, as every tool in this pack does. Pages by cursor: `pageInfo.endCursor` is sent back as `variables.after`.
</Note>

## Body

<div className="reference-table">
  | Field                                                             | Type                                                                                      | Description         |
  | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------- |
  | `variables` <span className="required" title="required">\*</span> | [SearchDocumentsVariables](/charter/charter/packs/linear/search/objects#searchdocumentsvariables) | What to search for. |
</div>
