> ## 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.

# Objects

> Every object and enum the Search tools accept.

## Model tree

<div className="model-tree"><div className="model-tree-scroll"><div className="tree-node"><a href="#searchbody">SearchBody</a><div className="tree-children"><div className="tree-node"><a href="#searchfilter">SearchFilter</a></div><div className="tree-node"><a href="#searchsort">SearchSort</a></div></div></div></div></div>

## SearchBody

The body of a search request.

<div className="reference-table">
  | Field         | Type                          | Description                                                                                                |
  | ------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------- |
  | `query`       | `string`                      | The text to match against page and data source titles. Omit it to list everything the integration can see. |
  | `filter`      | [SearchFilter](#searchfilter) | Restrict the results to pages or to data sources.                                                          |
  | `sort`        | [SearchSort](#searchsort)     | How to order the results.                                                                                  |
  | `startCursor` | `string`                      | A `next_cursor` from a previous response.                                                                  |
  | `pageSize`    | `integer`                     | How many results to return. Maximum 100. <span className="field-constraints">≥ 1; ≤ 100</span>             |
</div>

## SearchFilter

Which kinds of object a search returns.

<div className="reference-table">
  | Field      | Type                      | Description                                          |
  | ---------- | ------------------------- | ---------------------------------------------------- |
  | `property` | `string`                  | Always `object`. Required alongside `value`.         |
  | `value`    | `"page" \| "data_source"` | Whether to return only pages or only data sources.   |
  | `inTrash`  | `boolean`                 | Whether to search the trash instead of live content. |
</div>

## SearchSort

How to order search results.

<div className="reference-table">
  | Field       | Type                          | Description                                     |
  | ----------- | ----------------------------- | ----------------------------------------------- |
  | `timestamp` | `string`                      | Sort by when the result was last edited.        |
  | `direction` | `"ascending" \| "descending"` | The sort order. Required alongside `timestamp`. |
  | `property`  | `string`                      | Sort by how well the result matches the query.  |
</div>
