ai.agent when the model needs tool calls. You give the agent a prompt, instructions, and an allowlist of actions it can call during the run.
Capabilities
ai.agent: Prompt plus tool calls. Useactionsfor Tracecat actions andmcp_integrationsfor saved MCP servers.- EE
ai.preset_agent: Prompt plus a saved agent configuration. Use this when you want reusable instructions, tools, and MCP integrations across workflows. tool_approvals: Require approval before selected tools run. This is an enterprise feature.max_tool_callsandmax_requests: Bound how much work the agent can do in a single run.
Structured outputs
ai.agent also supports output_type.
- Use it when the agent should return a final object or typed value after tool use.
- Keep the schema focused on the final answer, not the intermediate tool steps.
MCP servers
Open sourceai.agent can call tools from saved custom remote or stdio MCP integrations. In open-source deployments, bring your own MCP server and select it in the action’s mcp_integrations input.
Enterprise Edition
Enterprise includes a catalog of 50+ preconfigured MCP servers with guided connection setup, including Splunk, SentinelOne Purple AI, CrowdStrike Falcon, Microsoft Sentinel, Elastic, Wiz, GreyNoise, and PagerDuty. Enterprise also adds ai.preset_agent, so you can save MCP integrations with reusable instructions and tools.
Internet access is controlled by the root preset for the shared sandbox process. Subagent presets can define their own tools and MCP integrations, but their internet setting does not grant network access unless the root preset also enables it.
See MCP integrations to learn more.
Reference
ai.agent
AI agent with tool calling capabilities. Returns the output and full message history.
Inputs
string
required
User prompt to the agent.
array[string] | null
Actions (e.g. ‘tools.slack.post_message’) to include in the agent.Default:
null.boolean
Whether to enable high thinking for agent runs.Default:
true.string | null
Instructions for the agent.Default:
null.integer
Maximum number of requests for the agent.Default:
45.integer
Maximum number of tool calls for the agent.Default:
15.array[string] | null
Saved MCP integrations to include in the agent.Default:
null.object | null
Model to use. Pick from the list of models enabled for this workspace.Default:
null.string | null
Deprecated model name. Use
model instead.Default: null.string | null
Deprecated model provider. Use
model instead.Default: null.object | null
Model settings for the agent.Default:
null.string | object | null
Output type for agent responses. Select from a list of supported types or provide a JSONSchema.Default:
null.integer
Number of retries for the agent.Default:
3.string | null
Optional existing agent session ID to continue from. If provided, the session must already exist.Default:
null.map[string, boolean] | null
Per-tool approval overrides keyed by action name (e.g. ‘core.cases.create_case’). Use true to require approval, false to allow auto-execution.Default:
null.Examples
Investigate an alert with toolsai.preset_agent
Enterprise Edition
Run an AI agent using a saved agent preset.
Inputs
string
required
Preset of the agent to run (e.g. ‘security-analyst’).
string
required
User prompt to the agent.
array[string] | null
Optional override for the actions (e.g. ‘tools.slack.post_message’) that the agent should be allowed to call.Default:
null.string | null
Additional instructions to append to the preset instructions for this run.Default:
null.integer
Maximum number of requests for the agent.Default:
45.integer
Maximum number of tool calls for the agent.Default:
15.integer | null
Optional preset version number to pin for this run.Default:
null.string | null
Optional existing agent session ID to continue from. If provided, the session must already exist.Default:
null.Examples
Run a saved agent presetFAQ
When should I use ai.action, ai.agent, or ai.preset_agent?
When should I use ai.action, ai.agent, or ai.preset_agent?
- Use
ai.actionwhen you only need one model response and no tools. - Use
ai.agentwhen the model must call Tracecat actions or saved MCP integrations during the run. - Use
ai.preset_agentwhen you want a reusable Enterprise configuration with shared instructions, approvals, tools, or MCP integrations.
How do I use MCP servers with ai.agent?
How do I use MCP servers with ai.agent?
Create a custom remote or
stdio MCP server, then select the saved integration in the mcp_integrations input. This bring-your-own MCP path is available in open source.Enterprise adds the catalog of 50+ preconfigured MCP servers and reusable agent presets.