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

# Memory search

> Search Instance documents.

Searches uploaded Instance documents by name and text. Results are scoped to this Workflow Instance only.

<h2 id="input">
  Input
</h2>

Inspector **Settings**. Empty-field rules for the Graph: [Previous nodes](/graph/previous-nodes). **Insert value** is on **Query**.

On an Agent Tool, both fields can be **Agent decides** or **Fixed**.

| Field     | Required | Empty        | Notes                                                                                                     |
| --------- | -------- | ------------ | --------------------------------------------------------------------------------------------------------- |
| **Query** | No       | —            | Empty uses the Run / Chat prompt, not previous Result. Placeholder `{{input}}` is Test input / Run input. |
| **Limit** | No       | Default: `5` | 1–20.                                                                                                     |

<h2 id="output">
  Output
</h2>

On the next node, **Previous nodes** lists **`Memory search`: Result** (`{{Memory search.text}}` while the name is unique).

| Output | In menu | Type          | Next node gets                                                                                        |
| ------ | ------- | ------------- | ----------------------------------------------------------------------------------------------------- |
| Result | Yes     | Markdown text | Hits with document name, id, and excerpt. Empty Memory: `No documents are stored in instance memory.` |
