Skip to main content
Create-or-replace by scope: one fixture per tool project-wide, plus one per (tool, flow variant). Setting the same scope twice replaces the response, so CI can apply fixtures idempotently. During Roark test calls the tool guard answers with the fixture verbatim instead of generating a response; real callers are never affected.
Calls POST /v1/simulation/tool-fixture

Options

string
required
The tool this fixture answers for.
string
The exact JSON to return.
string
Pin the fixture to one flow variant (scenario). Omit for a project-wide fixture. A variant-pinned fixture beats the project-wide one.
string
Why this fixture exists.
switch
Defaults to true.

Example

Every command also takes the global options and sets one of the exit codes.