Simulation
Set a tool fixture
Changed onCreate-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.
post/v1/simulation/tool-fixture
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/simulation/tool-fixture
- AuthHTTP bearer
Request body
Example request
{
"toolName": "lookup_availability",
"response": {
"slots": []
},
"description": "Forces the no-availability branch"
}Response
The fixture as stored.
Example response
{
"data": {
"toolName": "lookup_availability"
}
}Changes
- info
endpoint added
- info