fail_endpoint
Force one endpoint to fail in a simulated app while the rest keeps working, using offline, timeout, HTTP status, or delay settings to test error handling.
Instructions
Make requests to one endpoint fail inside a simulator app while the rest of the app works.
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": {
"app": "<app>",
"simulator": "<simulator>",
"pattern": "<pattern>",
"kind": "<kind>"
},
"name": "fail_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app: a bundle ID like com.me.MyApp, an app name, or * for every app in a simulator. | |
| kind | Yes | offline: fails as no internet. timeout: times out. status: answers with an HTTP status. delay: sent after a wait. | |
| value | No | For status: the HTTP status (default 500). For delay: seconds (default 3). For timeout: at most this many seconds. | |
| pattern | Yes | Requests whose URL contains this, like api.me.com/v1/feed. Use * for any text. | |
| simulator | Yes | For iOS Simulator apps: booted, any, a device name or a UDID. Leave out for a Mac app. |