The Tool Mocks screen is where you build reusable mock sets: scripted answers for your agent's tools, so conversation simulations run against predictable responses instead of calling real tools. Found in the agent sidebar under Simulation โ†’ Mocks; this menu item appears only when the Mocks feature is enabled. You attach mock sets to a conversation in the Tool Mocks card of the Scenarios form.

Mock Set List

New Mock SetOpens the editor for a new library mock set.
Show Filters / Hide FiltersOpens or closes the filter panel.
NameFilter: shows only mock sets whose name contains the text you type.
ToolFilter: shows only mock sets that mock the selected tool.
Apply / ResetApplies the filters, or clears them.
Sort ByOrders the list by Updated Date (default, newest first) or Name, Ascending or Descending.
Grid View / List ViewShows mock sets as cards or as a table (columns Name, Tools ยท cases, Used in, Updated).
Mock set card or rowShows the name, description, how many tools and cases it has, the tool names, and how many conversations use it. Click it to open the editor.
โ‹ฎ menuEdit, Duplicate (creates a copy), Delete.
DeleteAsks for confirmation. If the set is still attached to conversations, This mock set is in use lists where, and the confirm button removes it from those conversations and then deletes it.
Load MoreShown when more mock sets are available.
Empty stateNo Mock Sets Yet until you create the first one.

Mock Set Editor: Header

The editor opens as New Mock Set, or with the set's name when editing. It always edits a Library set (shared, reusable by any conversation).

Used in n conversationsEdit mode only. Opens a list of the conversations (and steps) that use this set.
SaveSaves the mock set. If someone else changed it in the meantime, you are asked to reload it.
DuplicateEdit mode only. Creates a copy of the set.
NameRequired. For example "Doctor scheduling, happy path".
DescriptionOptional. What this mock set is for.

Mock Set Editor: Tools in This Set

Tools in this setThe tools this set mocks. Select one to edit its cases on the right.
Add toolOpens a searchable list of the tools of the published agent (the version simulations run against). Pick a tool to add it.
Tool not found in the published agentShown on a tool that no longer exists in the published agent. Use Re-bind toโ€ฆ to point its cases at another tool.
Remove (trash icon)Removes the tool and its cases from the set.

Mock Set Editor: Cases

Each case is one scripted answer, used when the tool is called with matching arguments. Cases are checked in order.

Add caseAdds a new case for the selected tool.
Case labelOptional name for the case (shown as "Untitled case" when empty). Drag to reorder; duplicate or delete with the icons.
When all of these matchThe conditions on the tool's arguments. Add condition adds one (up to 20 per case). The case only answers when every condition holds; arguments without a condition can have any value. A case with no conditions matches every call, so cases below it are never reached.
Advanced โ€” Match raw argumentsOptional extra match on the raw arguments JSON, checked in addition to the conditions.
Respond withWhat the tool returns for this case. See Mock Set Editor: Response below.

A tool can have up to 50 cases.

Mock Set Editor: Conditions

Each condition is an argument, a comparison and a value.

ArgumentOne of the tool's inputs.
Comparison (Text, also lists, objects and unknown types)is, is not, contains, starts with, ends with, matches pattern (regular expression), is one of (comma-separated values), is empty, is not empty.
Comparison (Number)=, โ‰ , <, โ‰ค, >, โ‰ฅ, is between (minimum and maximum, inclusive).
Comparison (Yes/no)is true, is false.
Comparison (Any type)is present, is missing.
ValueThe value to compare with. Not needed for is empty, is not empty, is true, is false, is present and is missing.
Aa (Match case)Off by default, so text comparisons ignore upper and lower case. Turn it on to compare case-sensitively.
Remove condition (ร—)Removes the condition.

Mock Set Editor: Response

The same controls appear for a case and for the Otherwise default.

JSON / TextThe format of the response body (up to 64 KB).
Success / ErrorOpens ready-made templates for the tool, for example an empty list, Not found (404), Unauthorized (401), Rate limited (429), Invalid request (400) or Service down or timed out for a Custom API, Query fails or No rows found for a table query, Tool error or Empty text for an MCP tool.
StatusCustom API only. The HTTP status code returned (default 200 OK). A 5xx code reaches the agent as an empty result, as with a real failing API.
Content / MCP errorMCP tools only. Whether the body is normal content or an MCP error.
SuggestLets AI draft a response for this case.
Use a real responseOnly for Custom APIs that use GET; fills the response from a real call. Locked for other tools because calling them could create real data.
Fetch a sampleOnly for tools that read data; calls the real tool once and imports its shape.
FormatPretty-prints the JSON.
Form / View as JSONForm edits the body with fields that fit the tool's output (for example columns and rows for a table query, document hits, a form submission, a reminder or an escalation). View as JSON edits the raw body.

Mock Set Editor: Otherwise (every other call)

What happens to a call that matches no case. Choose under Advanced.

Respond with a defaultThe call gets the default response you edit here.
Keep lookingThe call moves on to the next mock set, then to the tool's default simulation policy. In the tool list, such tools are marked "Keeps looking".

Related guide: Test Tools Safely with Mocks