Mockifyer
v0.1.5Query and edit Mockifyer mocks, scenarios, and traces via the dashboard API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mockifyer_get_mock_ai_context
Return a lightweight AI-friendly projection of a mock recording (selected fields, schema summary, state hints). Prefer this over mockifyer_get_mock to avoid huge response payloads.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Mock filename from mockifyer_list_mocks or mockifyer_search_mocks |
excludePaths | array | Dot paths to exclude |
includePaths | array | Dot paths to force include (e.g. orders.*.status) |
includeRelated | boolean | Include sibling mocks on same endpoint for cross-recording state hints (default true) |
maxPaths | integer | Max selected body paths (default 25) |
mode | string | profile (default): fields+schema; schema: types only; suggest: ranked paths; full: entire mock |
scenario | string | Scenario name (defaults to dashboard active scenario) |
mockifyer_list_mocks
List mock recordings in a scenario (filename, endpoint, method, modified).
| Parameter | Type | Description |
|---|---|---|
scenario | string | Scenario name (defaults to active scenario) |
mockifyer_search_mocks
Search mocks by filename, endpoint URL, or method substring.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search query |
limit | integer | Max results (default 200) |
scenario | string |
mockifyer_get_mock
Fetch the full mock recording (request + response). Use mockifyer_get_mock_ai_context when you only need semantic/state fields.
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
scenario | string |
mockifyer_list_scenarios
List available scenarios and the currently active scenario.
mockifyer_set_scenario
Switch the dashboard active/global scenario. For Redis/sqlite multi-client isolation prefer mockifyer_set_client_lane_scenario so Playwright/app lanes stay independent.
| Parameter | Type | Description |
|---|---|---|
scenario * | string | Scenario name (letters, numbers, hyphens, underscores) |
mockifyer_create_scenario
Create a scenario and make it active. Pass deriveFrom to copy mocks (and date config) from an existing scenario — e.g. check-in-open derived from default before applying $pool refs/overrides.
| Parameter | Type | Description |
|---|---|---|
scenario * | string | New scenario name |
deriveFrom | string | null | Existing scenario to copy from; omit/null for empty |
mockifyer_set_client_lane_scenario
Map a Redis/sqlite client lane (MOCKIFYER_CLIENT_ID) to a scenario for isolated E2E/demo runs. Requires dashboard --provider redis|sqlite. Pass scenario=null to clear the lane mapping.
| Parameter | Type | Description |
|---|---|---|
clientId * | string | Client lane id (e.g. trips-e2e-checkin) |
scenario * | string | null | Scenario to bind, or null to clear the lane override |
mockifyer_list_client_lanes
List Redis/sqlite client lanes and their configured scenarios (disabled on filesystem provider). Use before mockifyer_set_client_lane_scenario.
mockifyer_get_endpoint_stats
Summarize mock counts per endpoint, HTTP method, and status code for a scenario.
| Parameter | Type | Description |
|---|---|---|
scenario | string |
mockifyer_get_field_overrides
Get replay-time field overrides for a mock (path/value pairs only). Prefer this over mockifyer_get_mock when editing overlays.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Mock filename |
scenario | string |
mockifyer_list_override_groups
List scenario override groups and effective selection (default vs per-client lane). Pass clientId to see that lane’s choice.
| Parameter | Type | Description |
|---|---|---|
clientId | string | MOCKIFYER_CLIENT_ID / lane id |
scenario | string |
mockifyer_set_active_override_group
Set or clear an override group. With clientId, sets per-lane selection (does not change teammates). Without clientId, sets the scenario default only. Prefer lane scope for shared scenarios.
| Parameter | Type | Description |
|---|---|---|
groupId * | string | null | Override group id to activate, or null to clear |
clientId | string | Lane id — preferred for shared scenarios |
scenario | string | |
scope | string | lane = per clientId; default = scenario-wide fallback |
mockifyer_upsert_override_group_entry
Create/update field overrides for one mock inside an override group. Use ensure=true to add an empty entry; clear=true to remove the entry.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Scenario-relative mock filename |
groupId * | string | |
clear | boolean | |
ensure | boolean | |
overrides | array | |
scenario | string |
mockifyer_put_override_group
Create or replace an override group document (id + label + optional entries).
| Parameter | Type | Description |
|---|---|---|
id * | string | |
label * | string | |
entries | array | |
scenario | string |
mockifyer_set_field_overrides
Set replay-time field overrides on a mock (overlay on stored response.data). Small payload — only path/value pairs, not the full response. Use mode "extend" to append/merge, or "remove" to delete an array index or object key.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Mock filename |
overrides * | array | Field overrides to apply when the mock is served |
clear | boolean | When true, remove all field overrides |
merge | boolean | When true, append to existing overrides instead of replacing |
scenario | string |
mockifyer_copy_array_item
Clone an array item in response.data, apply optional field overrides on the clone, and persist. Use to add a booking copied from an existing one without sending the full response to the AI.
| Parameter | Type | Description |
|---|---|---|
arrayPath * | string | Path to the array from response.data root, e.g. data.bookings or bookings |
filename * | string | Mock filename |
fromIndex * | integer | Index of the item to clone |
insertAt | Where to insert the clone (default append) | |
itemOverrides | object | Fields to change on the clone only, e.g. { status: "CONFIRMED" } |
scenario | string |
mockifyer_set_mock_behavior
Set status override and/or response delay on a mock for error simulation and latency testing. Use statusOverride to simulate HTTP errors (e.g. 500, 429, 404) and responseDelayMs to add artificial latency. Pass null to clear an override.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Mock filename |
responseDelayMs | Delay in milliseconds before returning response, or null to clear | |
scenario | string | Scenario name (defaults to active scenario) |
statusOverride | HTTP status code to override (100-599), or null to clear |
mockifyer_list_network_events
List recent network log hops (mock hits, upstream calls, proxy traffic). Use to find requestId/eventId before calling mockifyer_get_network_trace.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Filter by client lane id |
limit | integer | Max events to return (default 200) |
scenario | string | Scenario name (defaults to active scenario) |
since | string | ISO timestamp — only events after this time |
mockifyer_get_network_trace
Resolve a multi-service call chain from the network log (gateway → downstream → external). Each hop may include request/response body previews when captureBodies is enabled.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Client lane filter when scanning events |
eventId | string | Dashboard network log row id |
limit | integer | Max network events to scan when resolving the trace (default 5000) |
requestId | string | X-Mockifyer-Request-Id from entry service (preferred lookup key) |
scenario | string | Scenario name (defaults to active scenario) |
mockifyer_explain_incident
Explain a crash or app incident with preceding network hops and heuristic suspects (weird 200s, GraphQL errors, mock misses).
| Parameter | Type | Description |
|---|---|---|
at | string | ISO timestamp anchor (defaults to latest incident) |
clientId | string | Client lane filter |
incidentId | string | Dashboard incident row id from network log |
limit | integer | Max network events to scan |
scenario | string | Scenario name (defaults to active scenario) |
sessionId | string | Session id when incidentId is unknown |
windowMs | integer | Lookback window in ms (default 60000) |
mockifyer_get_network_log_config
Return network logging settings for a scenario (enabled, captureBodies). Traces include body previews only when captureBodies is true.
| Parameter | Type | Description |
|---|---|---|
scenario | string | Scenario name (defaults to active scenario) |
mockifyer_list_entities
List fixture-pool entities (shared catalog of domain objects). Extract from recordings with mockifyer_extract_entity. Entities are inert until a future activation path; matching still uses normal scenario mock files. Endpoint slots are deferred.
| Parameter | Type | Description |
|---|---|---|
entityType | string | |
q | string | Search id/label/entityType |
tag | string |
mockifyer_get_entity
Get one pool entity by id (includes usedInScenarios from scenario manifests).
| Parameter | Type | Description |
|---|---|---|
id * | string |
mockifyer_extract_entity
Extract entity data from a mock recording into the pool (jsonPath e.g. trips.0). Use extractAllArrayItems to create one entity per array element. Catalog only for now — does not change request matching.
| Parameter | Type | Description |
|---|---|---|
entityType * | string | e.g. trip, user, booking |
filename * | string | |
jsonPath * | string | Dot path under response.data, e.g. trips.0 |
scenario * | string | |
extractAllArrayItems | boolean | |
id | string | |
label | string | |
tags | array |
mockifyer_fork_entity
Copy a pool entity to a new id (safe when you need scenario-specific edits without mutating the shared base).
| Parameter | Type | Description |
|---|---|---|
id * | string | Source entity id |
newId * | string | New entity id |
label | string |
mockifyer_create_entity
Create a manual pool entity.
| Parameter | Type | Description |
|---|---|---|
entityType * | string | |
id * | string | |
label * | string | |
data | ||
tags | array |
mockifyer_delete_entity
Delete a pool entity. Fails with 409 if scenario manifests still reference it unless force=true.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
force | boolean | Delete even when referenced by scenario manifests |
mockifyer_promote_response
Promote a full mock recording into a response fixture (whole HTTP payload escape hatch).
| Parameter | Type | Description |
|---|---|---|
filename * | string | |
scenario * | string | |
id | string | |
label | string | |
tags | array |
mockifyer_list_response_fixtures
List full-response fixtures in the pool. Use with mockifyer_preview_pool_ref / mockifyer_set_pool_ref to activate via $pool refs.
mockifyer_preview_pool_ref
Preview resolving a promoted pool response with optional path + field/index select (document keeps envelope; value returns subtree).
| Parameter | Type | Description |
|---|---|---|
id * | string | Pool response fixture id |
indices | array | |
mode | string | |
path | string | Dot path into the pool response body |
select | object |
mockifyer_set_pool_ref
Embed a $pool reference into a scenario mock response (entire body or at a JSON path). Serve-time resolve loads the promoted fixture.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Mock filename relative to the scenario folder |
pool * | object | |
path | string | null | Path within response.data to set; omit/null replaces entire response.data |
scenario | string |
mockifyer_get_atlas_doc
Atlas auto-doc map: screens, CMS pages, datasources, lastRequestIds. Default summary=true (compact). Join lastRequestId to network/mocks for response values. Live stream from /api/atlas — available before HTML generate.
| Parameter | Type | Description |
|---|---|---|
scenario | string | |
summary | boolean | Compact projection (default true). Set false for full doc including props samples. |
mockifyer_list_atlas_events
List live Atlas prefetch/presentation events (screen/CMS semantics). Not HTTP hops — use mockifyer_list_network_events for wire traffic.
| Parameter | Type | Description |
|---|---|---|
clientId | string | |
kind | string | |
limit | integer | |
scenario | string | |
sessionId | string |
mockifyer_list_atlas_usage
List Atlas usage annotations (requestId → screen/component/CMS). Bridge from UI to network hops.
| Parameter | Type | Description |
|---|---|---|
scenario | string |
mockifyer_list_atlas_sessions
List Atlas session ids for a scenario (from live event log).
| Parameter | Type | Description |
|---|---|---|
scenario | string |
mockifyer_get_atlas_tree
CMS presentation tree for one Atlas session (nested by parentId) plus prefetch list.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | Atlas session id from mockifyer_list_atlas_sessions |
scenario | string |
mockifyer_get_atlas_generated_status
Whether Atlas HTML generate output exists under mock-data/atlas-html (index.html, atlas.har, atlas-events.json, bodies-search.json) and body-search entry counts. Call after Dev Menu / mockifyer-atlas render.
mockifyer_list_atlas_generated_hops
List hops from atlas-events.json after generate (method/url/status/source + hasBodySearchText). Prefer this before searching bodies. When bodies are missing, use mockifyer_get_mock for mock-hit hops.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
onlyWithBodies | boolean | If true, only hops present in bodies-search.json |
mockifyer_search_atlas_bodies
Search Atlas-generated bodies-search.json (post-render payloads). Empty when captureBodies/spill was off at capture time — then use mockifyer_get_mock for recorded responses instead.
| Parameter | Type | Description |
|---|---|---|
q * | string | Substring to find in hop body text |
includeHop | boolean | Attach hop metadata from atlas-events.json (default true) |
limit | integer | Max hits (default 25) |
mockifyer_get_atlas_hop_body
Get generated body text for one Atlas hop id (from bodies-search.json and spill files). Requires prior Atlas generate with bodies captured.
| Parameter | Type | Description |
|---|---|---|
eventId * | string | Hop id from mockifyer_list_atlas_generated_hops or body search |
maxChars | integer | Truncate body text (default 32000) |
mockifyer_explain_value
Explain where a response value comes from in one call: origin (mock file, request), what modified it (field/date/lane overrides), original vs effective value, hop chain from traces, and sibling fields. Use to answer "why does the app show this value?" without chaining multiple tools.
| Parameter | Type | Description |
|---|---|---|
clientId | string | Client lane filter |
fieldPath | string | Dot path to the field in response.data (e.g. temperature_2m or trips.0.status) |
path | string | Path to search for when URL is not provided |
requestId | string | X-Mockifyer-Request-Id from the response (preferred lookup key) |
scenario | string | Scenario name (defaults to active scenario) |
url | string | URL or path to search for (e.g. /api/discover?destinationKey=atlantis) |
value | Expected value to verify (e.g. -999 or "CONFIRMED") |