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. Use theactionslist to control which Tracecat actions the agent can use.- 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
Enterprise Editionai.agent does not take MCP servers directly in the workflow action. If you need MCP, save that configuration in an agent preset and run it with ai.preset_agent.
ai.preset_agent supports both remote and stdio MCP servers.
See MCP integrations to learn more.
Reference
ai.agent
AI agent with tool calling capabilities. Returns the output and full message history.
Inputs
Name of the model to use.
Provider of the model to use.
User prompt to the agent.
Actions (e.g. ‘tools.slack.post_message’) to include in the agent.Default:
null.Base URL of the model to use.Default:
null.Instructions for the agent.Default:
null.Maximum number of requests for the agent.Default:
45.Maximum number of tool calls for the agent.Default:
15.Model settings for the agent.Default:
null.Output type for agent responses. Select from a list of supported types or provide a JSONSchema.Default:
null.Number of retries for the agent.Default:
3.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
Preset of the agent to run (e.g. ‘security-analyst’).
User prompt to the agent.
Optional override for the actions (e.g. ‘tools.slack.post_message’) that the agent should be allowed to call.Default:
null.Additional instructions to append to the preset instructions for this run.Default:
null.Maximum number of requests for the agent.Default:
45.Maximum number of tool calls for the agent.Default:
15.Optional preset version number to pin for this run.Default:
null.