deploy_mock_from_spec
Deploy an inline OpenAPI 3.0 spec to a hosted, shareable mock with a persistent URL, stored in your account for team access.
Instructions
Create a HOSTED, SHAREABLE mock on mockzilla.org from an inline OpenAPI 3.0+ spec (YAML or JSON in the spec field, 4MB cap). The mock persists in the user's account and gets a stable URL anyone with the link can hit. Use this when the user pastes spec content AND wants a durable, team-visible result — NOT for ephemeral local exploration (use serve_locally for that). The returned sim is in deploying state — follow up with wait_for_deploy to receive the live URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"slug": "<slug>",
"spec": "<spec>"
},
"name": "deploy_mock_from_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | ||
| spec | Yes | ||
| domain | No | ||
| filename | No | ||
| mount_path | No |