# search

> Searches for words in the summaries and journals of the contexts you may read, and in the knowledge folders.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | One or more words, all of which must match. |
| `context` | string | no | Limit to one context. |
| `months` | integer | no | Number of months of journal to search, from 1 to 24. The default is 12. |
| `path` | string | no | Search only in this folder under `context`, for example `context/clients`. |

## Returns

Hits with the context, the place where the words were found and a short excerpt. For a hit in a journal the answer also gives the start of the conversation, so the AI can decide whether to open it with [read_conversation](https://enterpriseego.cafeboon.com/docs/reference/read-conversation).

## How it searches

- The search is by keyword and not by meaning. All words in the query must occur.
- It looks in the titles, names, projects and platforms in the journal, and in the summaries and the memory.
- It only searches what the person may read.

## Limits

- At most 25 contexts per search. If there are more, the answer says so, and you can name a context to search in a targeted way.
- A limit on the number of reads in your storage per search. The number of months is reduced when needed.
- At most 200 files under `context` are read per search.
- The answer shows the first 25 hits.

## Example

```json
{
  "name": "search",
  "arguments": { "query": "price list", "months": 6 }
}
```
