Skip to main content

Built-in tools

Agentheya ships a set of built-in tools your agent can call out of the box. Each is enabled per-agent from the Tools tab of the agent editor. Once enabled, two things become true:
  1. The agent can call the tool directly. The LLM decides when to use it based on the conversation.
  2. Your custom code tools can call it programmatically. Every custom code tool’s handler receives a ctx object with ctx.tools.<name>(input) — see Custom tool ctx.

All built-in tools

Web

  • web_search — search the web and return result snippets
  • web_fetch — fetch a URL as clean markdown

Files

Utility

  • calculate — deterministic arithmetic, percentages, and unit conversions
  • get_current_time — current ISO 8601 time, optionally in an IANA timezone
  • render_ui — emit a Generative UI spec

Interactive

Outbound

  • send_email — send transactional email (recipient-allowlisted; supports CC/BCC, custom headers, attachments, scheduled delivery)
  • check_email_status — look up delivery status + event timeline + advice for a previously-sent email
  • request_human_handoff — escalate to a configured human channel

The anti-hallucination contract

Interactive tools (confirm_action, collect_form, render_ui with interactive: true, request_human_handoff) return an interaction_id and never describe what the user did. The user’s actual response arrives on the next turn as a synthetic tool-result. This means a misbehaving LLM cannot fabricate “the user said yes” — destructive flows pair confirm_action with commit_action, and the server is the only writer of approval state.

Calling built-ins from your code

Every custom code tool runs in a sandbox and gets a ctx parameter:
See Custom tool ctx for the full ctx surface.