> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/platform-resources/agent-executor/files-tools-and-plans.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Files, tools and plans

How agents take files, search documents and follow plans.

## Give the right file when asked

* If a connected tool asks for a document, attach the file with your answer. The agent is instructed to prefer files attached with the latest message over earlier ones, and to ask a follow-up question when information is missing.
* Agents pass uploaded or generated files to skills as working download links. When several files are present, say which one you mean.
* Fields extracted from a document can be passed on as structured data rather than retyped text.
* If a document isn't searchable yet, because it is still processing, failed to process or is in a format that can't be searched, the search returns an error that says so. Wait for processing to finish before you ask again. If a knowledge search finds nothing, it returns no results rather than an empty answer.

## Follow a plan and change direction

For a planning agent:

1. Review the plan shown in the chat.
2. Answer question cards when input is needed.
3. Ask the agent to change its plan if your goal changes.
4. Use the stop control to stop the run.
5. Review failed steps before you treat the final answer as having done everything you asked.

Failed plan steps stay failed. The agent can move on to other open steps rather than retrying the failed one. Paused steps, and steps waiting for your input, still count as open work.

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/platform-resources/agent-executor/files-tools-and-plans.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
