mock_write
Create a mock response from scratch for a host and path, specifying the body as JSON or raw text when no real response exists to keep the shape valid.
Instructions
Write a mock response from scratch. Pass body as a JSON value (written
pretty-printed) or body_text as raw text, not both. Prefer
mock_create_from_entry when a real response exists, so the shape stays valid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| host | Yes | Bare hostname without scheme or port. | |
| path | Yes | Request path starting with `/`, naming a file, e.g. /api/v1/profile. A query string is accepted but ignored by Map Local. | |
| body_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mock | Yes | ||
| warnings | No | ||
| next_step | Yes | ||
| patches_applied | No | ||
| source_entry_id | No | ||
| archived_previous | No |