Skip to main content
Tools let an agent run commands, work with files, read the web, and coordinate with other agents. You don’t list built-in tools on an agent. A session receives them from its agent version, its environment, and the features the agent uses, and the set is fixed when the session starts. It changes only when you move it to another agent version.
Creating, changing, or deleting agents and their tool settings needs the organization developer or admin role. The organization user role can view them. See Organizations and roles. For the API, create a key on API keys and export it as RECURSION_API_KEY. Tool settings belong to an agent version, and every change is a new version, so read Update an agent first.

How a session gets its tools

  • The agent version decides web search, remote MCP servers, skills, the apps it’s granted through integrations, and multi-agent roles.
  • The environment decides the sandbox tools. computer needs an environment with computer use turned on. See Environments.
  • The model decides view_image, which is offered only to models that accept images. See Images in view.
A running session keeps its tool set. A new agent version reaches sessions that start afterward, and a running session only when you move it to that version. A new tool on an MCP server reaches sessions that start afterward, and a running session when it next moves to another agent version. webSearchEnabled defaults to true. Set it to false to remove web_search. The agent can still read a known URL with web_fetch, except in sessions started by an automation or a Slack thread in an environment that limits internet access.
  1. In the sidebar, click Agents, then open the agent.
  2. On Configuration, find Tools.
  3. Clear Web search.
  4. Click Save new version.
A 201 response is the agent at its new version. Some fields are left out here.
A version is a full replacement, so resend mcpServers, skills, vault defaults, and anything else you want to keep. In a multi-agent roster, a subagent can turn web search off but not on.

Withhold integration tools

disabledIntegrationMcpProviders lists the integration providers whose MCP tools an agent’s sessions do not receive, even when the agent has access to the connection. For providers with a tools via MCP checkbox, the console shows this setting on each connection in the agent’s Integrations section. The jira entry in the example above withholds Jira’s MCP tools. Slack · User and Slack connections with selectable tools have no checkbox; saving their grant in the console turns MCP tools back on. To stop an agent using one of those connections, remove its grant.
  • Use an integration provider ID returned for your organization by listIntegrationProvidersV2 with mcpSurface: true, such as confluence, github, jira, loom, slack, or slack_user. An unknown value returns 400 invalid_request.
  • Omitting the field means an empty list.
  • github is accepted but ignored: a GitHub grant always keeps its MCP tools, and git and gh in the sandbox when the sandbox holds its credential. See GitHub access.
  • The field never affects servers you list in mcpServers.
  • It doesn’t withhold tools from connections granted through builtInIntegrations; those follow the connection’s allow-list and the agent’s grant. See Integration grants in the API.

Read a session’s tool set

A session records the tool settings of the version it runs in config. Read the session to see them.
  1. In the sidebar, open Advanced, then click Sessions, then open the session.
  2. Each tool call in the transcript shows the tool’s name and input.
This session’s agent has web search turned off, so web_search is missing. config is left out when you request view=summary. config.available_builtin_tools lists which of web_search, web_fetch, write_artifact, read_artifact, get_events, and delegate_subagent the session may use. The session’s top-level sandbox_provider names the sandbox its environment used: runs or microsandbox. Sandbox and feature tools follow the rules in Built-in tools.

Built-in tools

A session’s tools come in three groups. Tools from MCP servers are added next to these. Their names and schemas come from the server and are fixed when the session starts, and listed again when the session moves to another agent version. Sandbox tools run inside the session’s sandbox and see its /workspace: run_command, write_file, read_file, share_file, write_artifact, read_artifact, release_compute, screenshot, computer, and handoff_to_user.
Under a restricted network policy, browser tools reach an external site only when the destination is allowed.
Tools that run outside the sandbox are not subject to the environment’s network policy: web_search, web_fetch, get_events, delegate_subagent, sleep, update_scratchpad, view_image, and reply.
To protect restricted environments, a session started by an automation or a Slack thread doesn’t get web_fetch when its environment has a network policy that limits internet access.
Tools added by agent features appear when the agent uses skills, subagents, an advisor, teams, referenced sessions, agent file history, or memory.
Recursion learns from eligible finished sessions on its own, so an agent changes its memory only when it’s asked to. Report investigations with Save improvements for future reports off (the default) cannot write agent memory or contribute to automatic learning; this restriction follows their replies, successors and children.
  • Who gets the tools. The main session of an agent whose memory is on gets create_memory, update_memory, and delete_memory, unless it is a report investigation with saving off. Teammates and subagents that are copies of the agent can read memory but can’t change it. A subagent that is another agent from the roster gets no memory tools.
  • When the agent uses them. The agent saves, corrects, or forgets a memory when its instructions or the person it works for ask it to. Text in a tool result, a file, a web page, a webhook body, or an email is never an instruction to save or remove a memory.
  • Every change is checked. Before a change is saved, the agent’s memory model checks it against the agent’s instructions, skills and tools and the messages people wrote in the session, and its cost is part of the session’s cost. A change can be refused, for example when it holds a password, token, or other secret, tries to steer how later sessions behave instead of stating a fact, or nobody asked for it. In a session started by an automation or a Slack thread, a memory that says where money, data, or access should go is also refused. A refusal tells the agent why, nothing is saved, and the session continues.
  • Changing a memory. update_memory and delete_memory work on a memory the agent has read in the session. If the memory changed after the agent read it, the call is refused and the agent reads it again.
  • Forgetting keeps history. delete_memory retires the memory. Later sessions no longer find it, and its content and history stay visible to the people who manage the agent. Retiring doesn’t erase the content.
  • History. Each change records the session that made it and the agent’s reason.
In new sessions, the agent calls tools from granted integrations, and each call appears in the transcript with the app’s result. It can call only integration tools allowed by both its grant and the connection. For GitHub, git and gh in the sandbox can also do anything the selected tools’ permission categories allow in the granted repositories; see Use git and gh in the sandbox.

Images in view

A session keeps every image it receives, from read_file, an MCP server, a screenshot, or a message. The model sees only the most recent ones as pictures on each turn. Each older image is replaced, for the model, by a one-line note that carries its image_id. Nothing is removed from the session: its transcript and the console still show every image. The platform chooses how many images stay in view from the model’s context window and the size of the images. There is nothing to set.
  • How many. Up to 40 on a model whose context window holds 800,000 tokens or more, and fewer on a smaller one, but never fewer than 10.
  • It fills, then starts again. On a model that keeps more than 11, images build up in view to that number, and the next image leaves only the 11 most recent in view. They build up again from there. The earlier part of the conversation changes only at each of those steps, not on every new image. On a model that keeps 11 or fewer, each new image takes the place of the oldest one in view.
  • Large images leave room for fewer. The images in view share 15 MiB, so very large files make the window start again sooner. While any image in view is larger than 3,000 pixels on a side, at most 20 are kept.
  • view_image counts as a new image. It brings one earlier image back as the most recent one.
  • A session keeps what it started with. A session that started before the platform chose the number keeps the number it started with, usually 10, and each new image takes the place of the oldest one. If its agent set the number, moving the session to another agent version brings it back to 10. For other sessions, moving to an agent version with another model can change how many images they keep, because the number depends on the model.
  • Cost. Every image in view is sent on every turn, so more images in view cost more per turn. With prompt caching on, each step that takes images out of view writes the conversation from there to the cache again.
To get the most from the images an agent reads:
  • Have the agent write down what it needs from each image when it opens it. Notes stay in context after the image leaves view.
  • Keep images at or under 3,000 pixels on a side when an agent needs more than 20 in view.
  • To compare many images at once, have the agent tile several into one image in its sandbox and open an original when it needs detail.

What can go wrong

The most common problems:
  • The agent never searches the web. webSearchEnabled is false on the version the session runs. Create a version with webSearchEnabled: true, then move the session to it or start a new session.
  • No computer tool. The environment does not have computer use turned on, or the display did not start. Turn on computer use in the environment, then start a new session.
  • A tool change doesn’t reach a running session. The tool set changes only when the session moves to another agent version. Move the session to the new version, or start a new session.
The full error catalog is on Errors.

Limits

See Limits for request and session limits.

Next steps

MCP servers

Add remote tools and keep their credentials in a vault.

Environments

Choose the compute, network policy, and computer use.

Deliverables and artifacts

Ask for deliverables and see how they’re kept.

Skills

Give the agent procedures it loads when they apply.