# Overview

**URL**: https://docs.foxglove.dev/docs/agents

**Description**: Work with robotics data in natural language, using the agent sidebar in the app, the Slack integration, or your own AI agent through Foxglove's MCP server.

Agents let you work with robotics data using natural language. Search recordings, triage and debug them, build and refine layouts, and write user scripts to transform data, all by describing what you want instead of doing it by hand.

## Ways to use agents

Foxglove supports multiple ways to work with agents:

- **[Automations](https://docs.foxglove.dev/docs/automations)**: Saved agent prompts that run in the background, either when someone starts them or when a trigger fires, such as a new event, a finished import, or a schedule. Best for triage and review that should happen every time new data arrives.
- **[Agent sidebar](https://docs.foxglove.dev/docs/agents/agent-sidebar)**: Foxglove's built-in agent, in a sidebar next to your data. Best when you're already in Foxglove looking at a recording or layout and want fast, grounded back-and-forth.
- **[Local MCP server](https://docs.foxglove.dev/docs/agents/mcp-server)**: Foxglove Desktop supports a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server, so external agents can control Foxglove. Best when you're already working in another tool, or when using Foxglove to triage and debug issues alongside your code.
- **[Slack](https://docs.foxglove.dev/docs/agents/slack)**: Access Foxglove directly from Slack. Best for asking quick questions without leaving Slack, or when Foxglove can help resolve questions using context from an existing thread.
- **[External MCP](https://docs.foxglove.dev/docs/agents/external-mcp)**: Connect your accounts on external MCP services, such as Linear or GitHub, so Foxglove's agent can use their tools to look up context or post updates. Best when an investigation needs information from another product, or its results belong there.

Our agent sidebar and MCP server are powered by the same set of tools, so your choice of agents is mostly about where you want to work. The sidebar requires no setup, and runs in both the web and desktop apps. The MCP server is desktop-only, and puts Foxglove's tools inside the agent you already use.

## What agents can do

Agents can perform almost all of the tasks that humans can perform in Foxglove.

| Area | Capabilities |
| --- | --- |
| Data source | List topics, read schemas and messages, and summarize the loaded data source |
| Playback | Read playback state, pause, seek, and set the playback range |
| Layouts | Read, create, modify, rename, and validate [layouts](https://docs.foxglove.dev/docs/visualization/layouts); configure individual panels; capture the app, layout, or a panel as an image |
| User scripts | List, read, create, update, and delete [user scripts](https://docs.foxglove.dev/docs/visualization/user-scripts), for example to convert a custom schema into a [well-known schema](https://docs.foxglove.dev/docs/sdk/schemas) so it renders in the 3D or Map panel |
| Events | Read, create, update, and delete [events](https://docs.foxglove.dev/docs/data/events) to annotate moments in the data |
| Data search | Search the organization's recordings, sessions, and events |
| Devices | List [devices](https://docs.foxglove.dev/docs/data/devices) and look one up by name or ID (read-only) |
| Projects and Sites | List the organization's [Projects](https://docs.foxglove.dev/docs/projects), [Primary Sites](https://docs.foxglove.dev/docs/data/primary-sites), and [Edge Sites](https://docs.foxglove.dev/docs/data/edge-sites), where recording data is stored, indexed, and queued for import |
| Navigation | Take the app to a specific page or view |
| Documentation | Search the Foxglove docs and cite sources |
| Skills | Foxglove's built-in task playbooks, including layouts, panel configuration, [FoxQL](https://docs.foxglove.dev/docs/visualization/foxql), search syntax, user scripts, and MCAP diagnostics |

## Example workflows

The capabilities above combine into workflows. Some prompts to try:

- "Build a layout to review the camera feeds and joint states in this recording": designs a layout against the actual topics present when no saved layout fits.
- "Find the topics here that report wheel velocity and plot the ones that aren't always zero": locates signals by what they measure rather than by exact name, then builds the plot.
- "Plot the delay between the publish time and the header timestamp for `/lidar/front`": derives a diagnostic that isn't a raw field in the data.
- "Write a user script that converts `/wheel_speed` from rad/s to m/s": writes and compiles the [user script](https://docs.foxglove.dev/docs/visualization/user-scripts) in place.
- "Find last week's recordings from `robot-1` and open the most recent one": searches the organization's data and navigates the app there.

## Staying in control

The agent sidebar asks before it changes anything, and you choose whether that approval covers one action, the rest of the chat, or every chat. See [Approving changes](https://docs.foxglove.dev/docs/agents/agent-sidebar#approving-changes).

External agents are gated in your MCP client instead. Foxglove runs whatever tool the agent calls and marks each one with the standard MCP annotations, leaving the client to decide what to ask about. See [Approvals happen in your client](https://docs.foxglove.dev/docs/agents/mcp-server#approvals-happen-in-your-client).

Automations work differently. A run has no one to ask, so it never stops for approval. It acts as the automation's owner, with the access the owner gave it, and records every step in the run's **Activity**. See [What a run can access](https://docs.foxglove.dev/docs/automations#what-an-automation-run-can-see-and-do).

## Docs for your own agent

To give a coding agent or another LLM tool context on Foxglove, point it at [`llms.txt`](https://docs.foxglove.dev/llms.txt), an index of these docs, or at [`llms-full.txt`](https://docs.foxglove.dev/llms-full.txt), which has every page in one Markdown file. The REST API has its own [`api/llms.txt`](https://docs.foxglove.dev/api/llms.txt) and [`api/llms-full.txt`](https://docs.foxglove.dev/api/llms-full.txt).
