Built-in Tools
Built-in tools are framework tools eve provides: a default set every agent gets, and opt-in tools you add with one file. Each occupies the same agent/tools/<name>.ts slot you would author yourself, so an authored definition replaces it and disableTool() removes it. For custom tools, see Tools.
Default tools
Default tools require no imports. The model sees only the defaults available to the current agent and session.
Disable optional default tools
Optional default tools are enabled unless you set defaultTools: false in agent/agent.ts:
Add back only the tools the agent needs with the command in each tool's section. Files under agent/tools/ stay available, including same-name replacements such as agent/tools/bash.ts. defaultTools doesn't affect the catalog tools, which eve adds from what the session can reach.
bash
bash runs shell commands in the agent's sandbox.
bash waits up to 60 seconds for a command. The model can pass timeout to wait longer for a build or test suite, up to 120 seconds. Values above 120 wait 120, and values below 1 wait 1. The cap leaves room for the model call within the Vercel Functions time limit. A command that finishes in time returns status: "completed" with exitCode, stdout, stderr, and truncated. A command that is still running keeps running in the sandbox as its own process group and returns status: "running" with:
pid: the process group idoutputDirectory: a directory under/tmp/.eve/jobs/stdout,stderr, andtruncated: the output so farmessage: instructions for the model
The model reads the result as plain text: stdout, then any stderr after a [stderr] line, or (no output) when the command printed nothing. Each stream keeps its last 2,000 lines or 50 KB. A line longer than 2,000 characters keeps its start and ends with [truncated]. A stream with lines left out starts with a note, which names a file in the sandbox holding the full output when the sandbox runs bash with its job files (just-bash does not). A command that exits non-zero ends with [exit code: N] and reaches the model as an error result. For a running command, message follows the output instead. Channels and hooks get the fields above on call.settled.
The command writes to stdout and stderr files in outputDirectory, and its exit code to an exit file when it finishes. The model checks on or stops it with shell commands in later bash calls, so the tool's approval policy applies to them:
The command runs across turns until it exits, the model stops it, or the sandbox stops, and its output files last until the sandbox stops. Cancelling a turn stops a command that hasn't yet returned running. A message that arrives while bash waits reaches the model after the call returns, so a longer timeout can delay it. The just-bash provider has no background processes, so it runs every command to completion.
Override its description, approval policy, or executor by wrapping the exported definition:
A wrapper that spreads bash keeps its timeout input. If the wrapper supplies its own execute or input schema, forward timeout to bash.execute or remove it from the schema.
The wrapper also keeps the plain-text view through the spread toModelOutput. If your execute returns a string, the model sees that text. Any other shape, including a bash result with extra fields, reaches the model as JSON; set your own toModelOutput to change that.
Disable only bash:
read_file
read_file reads sandbox text files with line-numbered output. It also shows the model images and PDFs as files:
- PNG, JPEG, GIF, and WebP images up to 3 MiB and 8000 pixels per side
- PDFs up to 20 MiB
It detects images and PDFs from their bytes, so the filename extension doesn't matter.
It accepts absolute paths, paths relative to the workspace root where bash commands start, and paths beginning with $HOME/. Results and errors name the resolved absolute path.
Override it:
Disable it:
write_file
write_file writes complete files in the sandbox. It enforces read-before-write and stale-read detection, and accepts the same paths as read_file.
Override it:
Disable it:
edit_file also changes existing files. If you disable or wrap write_file to limit writes, do the same for edit_file.
edit_file
edit_file edits one sandbox file by exact text replacement. To add it back after defaultTools: false:
The model passes path and edits, a list of { oldText, newText } replacements. Each oldText must match exactly one region of the file as it was before the call, and replacements must not overlap. When no exact match exists, edit_file ignores trailing whitespace and treats smart quotes, Unicode dashes, and special spaces as their ASCII forms. The file keeps its byte order mark, and every line gets the file's first line ending, so a CRLF file stays CRLF. edit_file rejects files that are not valid UTF-8.
Relative paths resolve against the workspace root, and ~ or $HOME resolves to the sandbox's home directory. edit_file doesn't require a read_file call first. After it changes a file the session already read, write_file can overwrite that file without another read_file call. A failed edit changes nothing, and its error names the problem, such as a missing or ambiguous oldText. The model reads Successfully replaced N block(s) in <path>., and channels and hooks get { path, replacements } on call.settled.
Customize it by wrapping the framework definition:
Disable it:
web_fetch
web_fetch fetches URLs from the app runtime. It follows up to ten redirects and checks every destination for SSRF safety. Non-success responses return plain text with the response body when available.
Override it:
Disable it:
web_search
web_search uses provider-managed web search and appears only for supported model providers. AI Gateway models use Exa unless you set provider; direct provider models use their native search.
Choose another AI Gateway search provider:
Select Browserbase Search in the same slot:
Browserbase Search requires a Gateway model ID. AI Gateway runs the search with AI_GATEWAY_API_KEY or Vercel project OIDC credentials, so no BROWSERBASE_API_KEY is needed. See Browserbase Search on AI Gateway.
Select Tako Search to search the web and Tako's knowledge graph of structured data in one call:
Results include web pages and Tako data cards. Each card names its sources and links an embeddable chart. The model chooses the search effort and whether to return a card's rows in the result. Deep searches and card rows cost more than a fast search, so say in your agent instructions when to use them. Tako Search requires a Gateway model ID. AI Gateway runs the search with its usual credentials, so no Tako API key is needed. See Tako Search on AI Gateway.
Select the model vendor's own hosted search for a model routed through AI Gateway:
The vendor runs the search server-side and returns citations:
| Model vendor | Search |
|---|---|
| OpenAI | OpenAI web search |
| Anthropic | Anthropic web search |
| Google, Gemini 3 and later | Google Search grounding |
AI Gateway uses its usual credentials, so no OPENAI_API_KEY, ANTHROPIC_API_KEY, or Google key is needed. Every other Gateway model, including one picked by a dynamic model resolver and Gemini models before Gemini 3, doesn't get web_search.
eve picks the search tool from the requested model. A call that AI Gateway's models fallback serves with another vendor's model can therefore run without search.
Anthropic web search runs only on Anthropic's own API. AI Gateway tries another host when Amazon Bedrock or Google Vertex AI rejects the tool. If no host accepts it, eve retries the step without web_search.
Set fallback to give models without native search a provider that works with any Gateway model ("exa", "parallel", "browserbase", or "tako"):
The provider setting applies only to AI Gateway models. Direct OpenAI, Anthropic, and Gemini 3 and later models always use their native search; other direct models omit web_search.
eve identifies a direct model's vendor by its AI SDK provider name. A createOpenAI() model pointed at an OpenAI-compatible endpoint, such as Amazon Bedrock's, therefore gets OpenAI web search. When the endpoint rejects it, eve retries the step without web_search, so each step makes one rejected call first. To avoid that, give the provider its own name, so the agent gets no web_search:
Replace provider-managed search with an authored implementation:
Disable it:
agent
agent delegates a subtask to a fresh copy of the root agent. It is root-only, and each call is a task: the call returns a receipt, and the child's reply arrives later as the task's result. The child receives the root's instructions, tools, connections, and sandbox, but starts with fresh conversation history and state. See Subagents.
To let the model run a root-copy task on another model, call agent({ models }) and list the models it may choose:
models takes the same entries as auto(). A string entry is the description, and its key is the AI Gateway model ID. An object entry holds the model, an AI Gateway model ID or an AI SDK model, with its description and optional reasoning, modelContextWindowTokens, and modelOptions. The tool then accepts:
The model sees each key with its description and can choose only those keys. A call without model runs on the root agent's model, the same as the default tool; with a dynamic model such as auto(), the copy chooses again. agent() with no models is the default tool, with no model input. The selected model applies to every turn of the task's session. A continuation can omit model or repeat the original one; start a new task to use another. Copies and declared subagents never get this tool.
An authored agent/tools/agent.ts replaces the framework tool. Re-export the default definition, export agent({ models }), export another tool such as agentRouter(), or disable the slot. agentRouter() runs each call as a task, which adds eve__task_wait and eve__task_cancel:
eve__search, eve__tool, and eve__skill
The catalog tools let the model reach what isn't in its tool list. eve__search finds tools defined with deferred: true, agents defined with tool: "deferred", every tool from the agent's connections, and deferred skills. eve__tool calls a deferred tool, agent, or connection tool by name, and eve__skill loads a skill, deferred or not. There is no add command; eve adds each one when the session has something it reaches, even when defaultTools is false:
eve__toolcomes with anything it can call: a deferred tool or agent, or a connection.eve__skillcomes with any skill, so an agent whose only catalog entries are listed skills getseve__skillalone.eve__searchcomes with anything it could find: whatevereve__toolcan call, plus deferred skills.- A session with none of these gets no catalog tools.
Declared entries count from the session's first step, and an entry a dynamic resolver returns counts from the step where it first appears. A resolver in agent/tools/ that returns only non-deferred tools adds no catalog tools. Once a session has a catalog tool, it keeps it, even after a resolver stops returning the entry that brought it.
eve__search
eve__search({ query, limit? }) returns the best matches, up to limit (default 10, at most 50). query is required and must contain a word. It isn't a regular expression, and eve ignores characters that can't appear in a name, such as a leading ^.
| Match | Fields | Use with |
|---|---|---|
| Tool | tool name, description, and a TypeScript signature rendered from its schemas | eve__tool |
| Deferred skill | skill name, description, and the path of its SKILL.md when it has supporting files | eve__skill |
A very long signature drops its property descriptions before any property name. Next to results, searched counts the entries the query covered, and remaining counts the matches past limit. A connection behind sign-in counts as its one sign-in result, and an unavailable connection counts as none.
Tools and skills rank together, in tiers:
- An entry whose name is exactly the query.
- An entry whose name after its last
__is the query, such aslinear__create_issueforcreate_issue. - The tools of a connection named by the query, so
eve__search({ query: "linear" })lists thelinearconnection's tools first. - Entries whose names, or names after their last
__, start with the query. - Keyword matches in names, parameters, and descriptions. One-letter and filler words such as
aandthedon't count unless the query has nothing else.
A query whose first word contains __ searches one namespace: everything before its last __, without trailing underscores. eve__search keeps names under <namespace>__ and anything named exactly the namespace, such as a connection's sign-in entry, then ranks them by the whole query. eve__search({ query: "linear__" }) returns only the linear connection's tools, or its sign-in result. Connections that can't own names in that namespace don't appear in unavailable. A namespace that matches nothing fails with the closest connection names.
eve__search never asks the user to sign in. A connection whose server won't list its tools until sign-in appears as one result named after the connection, such as linear. A connection whose tools fail to load, or take longer than 10 seconds, appears under unavailable. Its error reads, for example, "crm" did not list its tools within 10s. Try again later. Matches from everything else still return. An eve__tool call on that connection's tools fails with the same error.
eve__tool and eve__skill
eve__tool({ name: "linear" }), with a connection's own name, asks the user to sign in when the connection's tools need it. It returns once the tools can be listed, so the nexteve__searchfinds them. If the server lists its tools without sign-in, it confirms they are available without asking.eve__tool({ name, input? })calls the entry namednamewithinput, which defaults to{}. A connection tool's name is<connection>__<tool>, such aslinear__list_issues. A call fails with the entry's signature when the input fails its schema, and with the closest names when the name is unknown. A skill's name fails with a reminder to useeve__skill. When the server asks for the user's authorization, the call asks the user to sign in and waits until sign-in completes.- eve cancels a connection tool call that the server doesn't answer within 5 minutes. The call fails with an error such as
"linear" did not answer list_issues within 5 minutes. It may still have run, so check before you retry.A tool that changes data may already have made the change. eve__skill({ name })loads the named skill, deferred or not, and returns its instructions. An unknown name fails with the closest skill names. A tool's name fails with a reminder to call it witheve__toolor directly. A connection's name says to find its tools witheve__search({ query: "<connection>__" }).
Once eve__tool or eve__skill resolves its entry, the call runs like a direct call. Approval policies, workflow tools and tasks, agents, endsTurn, toModelOutput, hooks, and stream events all see the entry's own name and input, such as linear__list_issues. Only model history records eve__tool or eve__skill. Loading a skill emits call.requested with capability: { kind: "skill", name }, then call.settled.
What the model is told
eve lists what the model can reach in an append-only context message, not the system prompt. The message lists:
- which kinds of deferred entries exist
- up to 20 namespaces, the first
__segment of deferred names, such assreforsre__list_alerts - up to 20 connections with their descriptions
It never names a deferred entry, so deferred entries stay out of context until eve__search finds them. A later step appends the listing again only when it changes.
Reserved eve names
The tools eve adds itself live in the eve namespace: eve__search, eve__tool, eve__skill, eve__task_wait, eve__task_cancel, and eve__reply. No tool, subagent, skill, connection, or extension mount, static or dynamic, may be named eve or start with eve__. The compiler rejects an authored tool, skill, connection, or mount with such a name, such as agent/tools/eve__search.ts. eve rejects an authored subagent when the agent loads, and a dynamic entry when its resolver returns it. Any other name is free, including search and execute.
eve__task_wait and eve__task_cancel
eve adds eve__task_wait and eve__task_cancel when the agent has a tool that runs its calls as tasks. These are the built-in agent tool, declared subagents, remote agents, agentRouter(), the workflow tool, and authored workflow tools that define task(input, ctx) or serve(receive, ctx). There is no add command.
eve__task_wait({ timeoutSeconds? })waits until any task has a result, a new message arrives, ortimeoutSecondspass. It returns at once when a result is already waiting. The turn stays running, not paused, becauseturn.pausedonly reports approvals, questions, and other requests for input. Results arrive in a<task_result>message right after it returns. Waiting never stops a task.eve__task_cancel({ taskId })stops a task's current work and says so. When the task already finished or is an idle resumable task, it says the task had no work to stop. An id that names no task fails withUNKNOWN_TASK. Cancelling an agent task ends it; other resumable tasks stay available after a cancel.
Review these tools before production use. Disable, wrap, restrict, or require approval for any tool that can access the filesystem, network, shell, or sensitive data.
Opt-in framework tools
These tools are not added by default. Add only the ones the agent needs, and remove the file to remove the tool; disableTool() is unnecessary.
ask_question
ask_question lets the model ask the user one question, optionally with two or three options, and waits for the answer. Human-in-the-loop covers its input, results, and how channels show it. Add it:
ask_question is a workflow tool that calls ctx.ask(). A steering message that doesn't answer the question withdraws it, and the model reads { interrupted: true } as Stopped early because a new message arrived., then the message. In a session that cannot request input, such as a markdown schedule, the result is { status: "unavailable" } and the model continues on its own judgment.
glob
glob finds sandbox files by glob pattern. It searches the workspace root unless the model passes a directory, which accepts the same paths as read_file. Add it:
Customize it by wrapping the framework definition:
grep
grep searches sandbox file contents with a regular expression. It searches the workspace root unless the model passes a directory or file inside the workspace. Add it:
Customize it by wrapping the framework definition:
Inputs are pattern, optional path, glob, ignoreCase, literal, context, limit, and outputMode. Omit outputMode to list matching paths (files_with_matches); content returns matching lines and count returns per-file totals. Identifier-like patterns match literally unless literal: false is explicit. The default limit is 50 rows, capped at 200, with additional byte and line bounds.
Relative paths resolve against the workspace root; $HOME paths, parent traversal, and symlinks outside it are rejected. When the sandbox has ripgrep, results respect .gitignore; otherwise they don't. Results contain content, matchCount, outputMode, path, and truncated.
no_reply
no_reply ends the turn without a reply. It fits a scheduled check that finds nothing to report, or an action the agent already took is the whole answer. The model calls it with an optional { reason }, which stays in session history and traces and is never sent. Channels and schedule sends post nothing, and later turns see that the agent chose to stay quiet. Add it:
no_reply is a defineTool tool with endsTurn: true, so the turn ends once it succeeds, after any other tool calls in the same step settle. Only root sessions receive it. Slack clears the thread status when the turn completes.
Without no_reply, a root session also accepts an empty model reply with finishReason: "stop" and completes the turn without a final message. Use no_reply to record an explicit choice to stay quiet, with a reason. Delegated sessions retry an empty reply once and report a failure if it stays empty, so the caller can act on it.
sleep
sleep pauses the current turn and resumes it later, without keeping the application runtime running. The wait survives restarts. The model calls it with { seconds }. Concurrent calls run in parallel, and the turn resumes after the longest wait. A steering message, the default for a new message, ends the wait early: the model reads { interrupted: true } as Stopped early because a new message arrived., then the message. Add it:
Customize it by wrapping the framework definition:
What to read next
- Tools: define your own tools, gate them on approval, and shape their output with
toModelOutput - Dynamic capabilities: generate the tool set per session with
defineDynamic - Sandbox: configure the sandbox used by shell and file tools
- Subagents: declare specialists that the model can delegate to