Skip to main content

Tools: overview

Eve's canonical capability catalog, progressive direct-tool exposure, approvals, and prompt budget.
5 min read

Every Eve capability is a typed tool in apps/app/agent/tools/, backed by a Go API endpoint (except explicit Next helpers such as library oEmbed). The canonical catalog has 173 names, including bounded bulk/multi-write tools, split into groups of at most twelve.

Progressive typed-tool architecture#

  • Narrow tools for frequent flows (create_task, log_activity, plan_meal, …).
  • Dispatchers (manage_finance, manage_nutrition, manage_work, manage_library, manage_health, manage_daily, manage_goals, manage_week_plan) for coherent long-tail operations.
  • A canonical capability catalog owns each name's group, section, mode, risk, intent keywords, entity types, anchor/bulk classification, and optional skill.
  • Progressive exposure keeps direct schemas and native approvals: a small core is always available, screen context activates one group, and search_agent_tools activates bounded additional groups for the current turn.
  • Permission-aware skills carry procedures for day/week planning, goal breakdown, capture/organize, financial review, and meal planning instead of placing every dispatcher payload in the stable prompt.

Shared helper: agent/lib/domains/_shared/dispatch.ts (runOperation).

Result presentation#

Execution results remain semantic tool data. Every canonical tool also has one client-independent presentation policy: a kind (receipt, entity, collection, profile search, agenda, Week plan, metric summary, trend, partial result, navigation, download, dispatcher, or none) and a turn role (terminal, supporting, or text). Tools never return JSX, HTML, component names, or a generic UI payload.

The chat adapts validated input/output into a bounded view model. Singular writes and reads use one compact result card; dense collections use rows; searches, agendas, and plans group those rows; bulk/dispatcher failures show successful and failed counts. Product-doc lookup, capability discovery, and identity/context helpers are deliberately text-only. Invalid historic output falls back to a safe receipt or stored prose rather than raw JSON.

NEXT_PUBLIC_EVE_TOOL_RESULT_UI_MODE=legacy restores generic receipts as an independent presentation rollback. It does not change tool exposure, execution, approvals, or persisted history.

By section#

What a user sees depends on their granted sections.

FileSectionToolsReference
platform.tsalways4Platform
platform_read.tsalways7Platform
capability_search.tsalways1Platform
profile_search.tsalways1Platform
product_docs.tsalways1Platform
memory.tsalways1Platform
tasks.tswork12Work
task_items.tswork9Work
projects.tswork8Work
tags.tswork4Work
calendar.tswork6Work
pomodoro.tswork5Work
work_manage.tswork1Work
notebook.tsdaily6Daily
activities.tsdaily6Daily
manage_daily.tsdaily1Daily
weekplan.tsdaily5Week plan
goals.tsgoals8Goals
manage_goals.tsgoals1Goals
finance.tsfinance14Finance
finance_recurring.tsfinance3Finance
finance_planning.tsfinance5Finance
finance_admin.tsfinance1Finance
health.tshealth7Health
health_routines.tshealth5Health
nutrition.tsnutrition6Nutrition
nutrition_meals.tsnutrition4Nutrition
nutrition_recipes.tsnutrition4Nutrition
nutrition_plans.tsnutrition5Nutrition
library.tslibrary9Library
library_collections.tslibrary4Library

The table lists the regular domain files; bounded bulk files complete the 173-name catalog. In legacy mode an owner can expose the whole authorized catalog. In progressive mode a model step never receives the whole catalog. See Auth and sections.

Approvals#

Tools that move money or personal memory use always(). Deletes (and some dispatchers when operation === "delete") use approveDeleteInSection(...), which denies immediately if delete permission is missing in that section.

ClassExamples
Money (always())create_transaction, update_transaction, add_debt_payment, settle_finance_debt, add_savings_contribution, set_budget
Memory (always())manage_eve_memory
Delete / soft-deletesoft_delete_task, bulk_soft_delete_tasks, soft_delete_meal_log, soft_delete_library_item, delete_reminder, delete_task_subtask
Multi-writebulk_assign_project, bulk_update_tasks
Dispatcher delete / archivemanage_finance (budgets/plannerItems), manage_nutrition (mealPlanSlots), manage_library (subitems), manage_health (checkins), manage_daily (noteGroups), manage_goals (always), manage_work (unlink and archive-on)
Other reversible destructive actionarchive_project (the endpoint toggles archive state)

In chat, Eve input requests retain their native kind: tool approvals use Approve / Deny, questions can show options and freeform input, and session-limit requests explain whether the run can continue. The selected answer remains in history beside the terminal execution state. The turn stays durably parked until someone responds. Toolsets are resolved in step.started, so the approval policy is recorded in the same runtime that announces the tool and is not lost after a cold start.

Voice uses the same capability risk policy. A sensitive call first receives a five-minute, single-use server challenge bound to the actor, profile, chat, turn, call, tool, and canonical arguments digest. The handler consumes it atomically before execution; missing, expired, replayed, or changed approvals fail closed. Consent cards use localized area copy and a redacted detail allowlist: internal ids, arbitrary objects, URLs, and secret-like values are never presented as raw arguments.

Out of scope (deliberate)#

  • Document bodies (note and task): metadata only.
  • Hard-delete of root entities (accounts, recipes, projects, goals, profiles).
  • Billing / member-role changes (read-only via platform tools).
  • Image upload or generation.
  • External services unless a tool exists in the session.

Use open_profile_view to return a deep link so the user can review in the UI.

Dates and money#

  • Every date input is a YYYY-MM-DD date key in the user's timezone. Handlers convert in lib/domains/_shared/time.ts.
  • Every amount is integer cents. 4500 is 45.00. Outputs include the formatted value.

Prompt budget#

  1. Prefer narrow tools; the dispatcher absorbs the long tail without inflating the catalog.
  2. One-sentence descriptions, plus a disambiguator for when to pick this and not the neighbor. Detailed multi-domain procedures live in permission-aware agent/skills/.
  3. No .describe() on obvious fields.
  4. toModelOutput when the raw payload can exceed ~1 KB.
  5. One shaper per Go entity.
  6. limit capped at 50, default 25, on every list.

Routing caps are ten core product tools, 24 on the first contextual step, 36 on any later step, and twelve per capability group. Bulk groups only activate for explicitly plural work. EVE_TOOL_ROUTING_MODE=legacy is the rollout rollback.

Disabled#

The default sandbox and web tools from Eve's harness are turned off with disableTool(): bash, read_file, write_file, web_fetch, agent. The opt-in glob and grep tools are not exported, so they remain unavailable.