Skip to main content

Built-in Tools

Pre-registered tools any agent, classify, or guardrails node — or any Skill — can call.

Set a node's tools config field to a list of tool names to grant it these capabilities. The LLM decides when to call a tool during its turn; the platform executes it and returns the result.

json
{
  "tools": ["web_search", "trigger_workflow"]
}

Available Tools​

ToolPurpose
web_searchSearch the internet for current information
code_executorRun Python, Bash, or sh in an isolated subprocess
sql_queryRead-only SQL SELECT against a data source
list_datasourcesThe data sources this run may query
list_tablesA data source's readable tables and views, with row counts
describe_tableA table's columns, keys, foreign keys and sample values
api_callerGeneric HTTP client for calling external REST APIs
file_readerSemantic search over a Knowledge base
email_draftCompose an email draft (does not send)
calendar_readRead calendar events in a date range
data_transformFilter, map, sort, aggregate, or project JSON data
trigger_workflowInvoke another published workflow at runtime
create_meetingStart a meeting (Jitsi/Zoom) or schedule one on the built-in Calendar, and return the join URL
emit_eventPublish a business event to the Event Bus to trigger downstream workflows or advance a Saga
send_messagePost a chat message to a channel or direct message the triggering user already belongs to

Besides these, a skill or node can use Workspace tools: Python tools from Workspace → Tools that an admin made available to agents.


Search the internet. Returns titles, URLs, and text snippets.

ParamRequiredDescription
queryyesThe search query string
max_resultsno1–10, default 5
languagenoISO 639-1 code, default en

code_executor​

Execute code in an isolated subprocess. stdout/stderr are each capped at 32 KB.

ParamRequiredDescription
codeyesSource code to execute
languagenopython (default), bash, or sh
timeout_secondsno1–120, default 30

Isolation (the same as for office skills):

  • The code gets a clean environment: none of the server's variables (database URL, secret key, API keys) are passed on.
  • It runs in its own temporary folder, removed afterwards, and its own process group, which is killed on timeout.
  • When the server runs as root (the container image), the code runs as the unprivileged skillrunner user, if that user exists. Set AGENT_CODE_EXECUTOR_RUN_AS to use another user; it defaults to ARTIFACT_SKILLS_RUN_AS. Otherwise it runs as the server's own user, still with the clean environment and limits.
  • Limits per call: CPU time (the timeout), memory (AGENT_CODE_EXECUTOR_MAX_MEMORY_MB, default 2048), file size (64 MB) and process count (256).
The network isn't isolated

Code can reach whatever the Studio server can reach on the network, as office skills can. Where that matters, run Studio with a network policy that limits its outbound traffic, or don't give agents code_executor.


sql_query​

Execute a read-only SELECT (or WITH … SELECT) against a data source: a database an administrator defined by name, with its password kept as a catalog secret.

ParamRequiredDescription
queryyesA SQL SELECT statement
max_rowsno1–1000, default 100 (never more than the data source's row cap)
timeout_secondsno1–120, default 30 (legacy secret URLs only; a data source has its own timeout)
datasourceyes¹The data source's name, such as sales
offsetnoSkip this many rows (paging)

¹ Without datasource, the query would run against Studio's own database (users, password hashes, API keys). That is off unless an admin sets AGENT_SQL_ALLOW_INTERNAL_DB=true.

When datasource names a data source, every rule of Data Sources applies:

  • the run must be allowed to use the source, by one of its spaces or by its user's grant;
  • the query is parsed, and may read only the allowed tables and never the hidden columns;
  • the source's row cap and timeout apply;
  • the call is in the source's query log.

The password never reaches the model.

Older skills can still pass the name of a catalog secret that holds a database URL:

  • That secret is read from the run's own catalog only.
  • The query runs read-only at the database: SET TRANSACTION READ ONLY on PostgreSQL and MySQL, PRAGMA query_only on SQLite.
  • An error never repeats the URL.
  • A secret that belongs to a data source is refused this way, and the model is told to use the data source's name.

list_datasources, list_tables, describe_table​

Explore before querying:

ToolParamsReturns
list_datasourcesnoneThe data sources this run may use: name, db_type, description
list_tablesdatasourceReadable tables and views: schema, name, type, row_count (counts for the first 50 tables)
describe_tabledatasource, table (table or schema.table)columns (name, type, nullable, primary key, hidden, sample values), foreign_keys, row_count

Hidden columns are listed as hidden, with *** for their samples, so a query can leave them out. The global Database Analyst skill bundles these tools with the database-analyst instructions.


api_caller​

Make an HTTP request to an external REST API. Response body is capped at 8 KB. Automatically retries on 429/503.

ParamRequiredDescription
urlyesFull URL to call
methodnoGET (default), POST, PUT, PATCH, DELETE
headersnoObject of HTTP headers
bodynoRequest body (JSON auto-sets Content-Type)
query_paramsnoURL query parameters as key-value pairs
auth_secretnoName of a secret in the run's catalog holding the credential
auth_typenobearer (default), basic, or api_key
timeout_secondsno1–120, default 30

Security:

  • url is validated against an SSRF allowlist before the request is sent — the same check used for mcp node server_url. Private/internal IP ranges (10.x, 192.168.x, 169.254.x, 127.x, ::1, etc.) and the cloud metadata address (169.254.169.254) are blocked by default, since api_caller can be reached by any agent_developer's skill, not just admins.
  • Redirects are followed by Studio, at most 5, and every hop gets the same check: a public URL can't bounce the request to an internal address. When a redirect leaves the original host, the Authorization, Proxy-Authorization and Cookie headers (and an api_key header) are dropped. A 303, or a 301/302 after a POST, continues as a GET without a body.
  • auth_secret is read from the run's own catalog only.
  • To intentionally allow calls to internal services in a trusted deployment, set API_CALLER_ALLOW_PRIVATE_URLS=true. This disables the check for all api_caller calls platform-wide — scope it narrowly and only enable it if you understand the tradeoff.
DNS rebinding

The check resolves the host name before the request, and the request resolves it again. A host whose DNS answer changes in between could still reach an internal address. Where that matters, also limit Studio's outbound traffic with a network policy.


file_reader​

Retrieve relevant text chunks from a knowledge base via semantic search.

ParamRequiredDescription
knowledge_idyesKnowledge base ID to search within
queryyesNatural language query
limitno1–50, default 5
min_scoreno0.0–1.0, default 0.0

The knowledge base must be one the node or its skill attaches, or one the user the run acts as can read (they own it, it's shared with them, or they're an admin). Any other ID is refused, so a model can't read a knowledge base by guessing its ID.


email_draft​

Compose a professional email and return it for review. Does not send.

ParamRequiredDescription
toyesRecipient address
subjectyesSubject line
bodyyesBody content
cc, bcc, reply_tonoOptional address fields
formatnotext (default) or html

calendar_read​

Read calendar events within a date range.

ParamRequiredDescription
start_dateyesISO 8601 date
end_datenoDefaults to start_date + 7 days
calendar_idnoFilter to a specific calendar
include_attendeesnoInclude each event's attendee list
searchnoKeyword filter on event title
max_eventsno1–500, default 100

data_transform​

Apply a transformation to structured JSON data. Output capped at 200 KB.

ParamRequiredDescription
datayesJSON array or object, as a string
operationyesfilter, map, sort, aggregate, or select_fields
expressionnoPython expression — item for per-item ops, data for aggregate
reversenoFor sort: descending order
fieldsnoFor select_fields: comma-separated field names

trigger_workflow​

Invoke another published workflow by ID or exact name and return its final output. Unlike a sub_workflow node — which is wired into the graph ahead of time by the workflow author — this lets the agent decide dynamically, at runtime, whether and which workflow to delegate to, based on its own reasoning.

ParamRequiredDescription
workflowyesTarget workflow ID or exact name
inputyesText input passed to the child workflow
wait_for_resultnotrue (default) blocks for the final output; false fires asynchronously and returns a run_id

Blocking example — the agent waits for the child workflow to finish and gets its output back directly:

json
{ "workflow": "Daily Summary", "input": "Summarize today's tickets", "wait_for_result": true }

Fire-and-forget example — the agent kicks off a long-running workflow and continues without waiting:

json
{ "workflow": "wf-abc123", "input": "Process the uploaded batch", "wait_for_result": false }

Returns a run_id; poll GET /api/v1/agent-workflows/runs/{run_id} for status. Either way, the child run is linked back to the calling run (parent_run_id/parent_node_id) and can be walked as part of a call-chain tree — see Traceability & Audit Log → chain correlation.

Safety guarantees:

  • Only workflows this run may start — the target must be readable by the user the run acts as (its owner, a member of its space, or an admin) and belong to the run's own catalog, since the child runs with this run's catalog credentials. Anything else reads as "not found", including a lookup by name.
  • Not-published rejection — refuses to invoke a draft or staged workflow.
  • Recursion guard — a workflow cannot trigger itself, directly or via a longer chain (A → B → A is blocked), and chains deeper than 5 hops are rejected. This prevents an LLM-driven decision loop from recursing indefinitely.
  • Errors are surfaced, not swallowed — if the child workflow fails, the tool returns the failure as a tool error rather than silently reporting "no output."
When to use trigger_workflow vs. a sub_workflow node

Use a sub_workflow node when the workflow author already knows, at build time, that this graph should always call a specific child workflow at this point.

To coordinate several agents, give a supervisor agent trigger_workflow and describe its specialists in its prompt: in the agent loop it can ask one specialist, read the answer, ask the next and then combine what they said, all in one node.

Use trigger_workflow when the decision of whether and which workflow to invoke should be made by the LLM itself — e.g. a triage agent that decides, based on ticket content, whether to delegate to a "Billing Escalation" workflow, an "IT Support" workflow, or neither.


create_meeting​

Create a meeting and return the join URL. Uses the first enabled meeting plugin unless plugin_type is given.

ParamRequiredDescription
titleyesMeeting title
plugin_typenojitsi, zoom, or calendar (schedules on the built-in Calendar). Omit to use the first enabled plugin
participantsnoUser IDs or emails to invite
json
{ "title": "Engineering Standup", "participants": ["alice@example.com", "bob@example.com"] }

Cannot start a Multi-Agent Room (plugin_type="agents") — those require backing-channel creation not exposed through this tool; use the Meetings UI for that plugin type instead.

Requires a real triggering user

The meeting is attributed to whoever's chat or workflow run actually triggered the calling agent — this is the only built-in tool that needs real caller identity (MeetingSessions.created_by must be a real user, since it drives the "My Sessions" list and access control). If called from a context with no real triggering user (e.g. an isolated skill test), it returns an error rather than guessing or using a placeholder identity.

For broader meeting capabilities (listing sessions, joining existing rooms, reading notes, posting to a Multi-Agent Room), see Meetings → Agent Integration for the hrida-mcpo-meetings MCP tool server, which exposes the full meetings REST API instead of just creation.


emit_event​

Publish a business event to the Event Bus. The event is written durably to the database and fanned out to all workflows subscribed to that event type. Used to:

  • Signal saga step completion (success or failure) so the Saga Coordinator advances or compensates
  • Trigger downstream autonomous workflows without hard-coding a direct call
  • Notify external systems that something happened inside a workflow
ParamRequiredDescription
event_typeyesSnake_case event name, e.g. hr_record_created, invoice_approved
payloadyesJSON-encoded string with event data, e.g. "{\"employee_id\": \"EMP001\"}"
correlation_idnoBusiness key linking related events across workflows. Always pass this when participating in a Saga or multi-step process.
sourcenoIdentifier for the publisher. Defaults to the workflow run ID.

Usage in a saga step:

json
{
  "event_type":     "hr_record_created",
  "payload":        "{\"employee_id\": \"EMP001\", \"hr_record_id\": \"HR-123\"}",
  "correlation_id": "EMP001"
}

Usage to signal failure:

json
{
  "event_type":     "hr_record_failed",
  "payload":        "{\"employee_id\": \"EMP001\", \"error\": \"Duplicate email\"}",
  "correlation_id": "EMP001"
}

Key rule: emit exactly one terminal event per workflow run (either success or failure — never both). The Saga Coordinator uses the first matching event it receives; a second one may cause state inconsistency.

Returns the event_id of the published event.

Compensation workflows

A compensation workflow (the one that undoes a saga step) must emit comp_{step_id}_done (or the configured compensation_done_event) when its undo work is complete. Without this, the saga instance stays in compensating state.

json
{
  "event_type":     "hr_record_deleted",
  "payload":        "{\"employee_id\": \"EMP001\"}",
  "correlation_id": "EMP001"
}

In Workflow Test Cases​

A workflow test case runs the workflow for real, so tools that change things outside the run aren't called in it. These calls return a note to the model instead ([not run in a test case: … Add a mock output to this node to test this path.]):

  • emit_event, send_message, create_meeting and trigger_workflow
  • api_caller with any method other than GET
  • API Builder operations other than GET
  • every Workspace tool

Read-only tools (web_search, sql_query, file_reader, data_transform …) run as usual. To test a path that depends on one of the tools above, give its node a mock output. The skill editor's Test tab is different: it calls every tool for real, as you.


Granting Tools to a Skill​

Tools aren't exclusive to agent-builder nodes — any Skill can declare a tools list, and any model with that skill attached gets the same capabilities. An Agent Skill can also list Workspace tools.


Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.