> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/textual-agent/agent-manage-chats.md).

# Managing the Textual Agent and Agent chats

## Expanding and collapsing the Textual Agent

The Textual Agent displays at the right side of the application.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FaVb05hi8AGOWJDaXVmGw%2FTextualAgentPopulated.png?alt=media&amp;token=1f26d177-2a27-4047-8d5c-ec0f49b66e57" alt=""><figcaption><p>Dataset details with the Textual Agent expanded</p></figcaption></figure>

When the Textual Agent is collapsed, to expand it, click the agent icon.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FVIeQEteLa1HFNI38vIJS%2FTextualAgentCollapsed.png?alt=media&amp;token=1e3dc598-70b3-438d-b274-eec2993f61ee" alt=""><figcaption><p>Collapsed Textual Agent with the agent icon to expand it</p></figcaption></figure>

When the Textual Agent is expanded, to collapse it, click the agent icon.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FRPHXdvkcG8F8zFO3kCCl%2FTextualAgentCollapseIcon.png?alt=media&amp;token=c3a7ea19-f1cc-45ed-9abf-299ee286d469" alt=""><figcaption><p>Expanded Textual Agent with the agent icon to collapse it</p></figcaption></figure>


---

# 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.tonic.ai/textual/textual-agent/agent-manage-chats.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.
