# GET /setSafeMode

Read or change safe-mode avoidance.

This is a device HTTP route. Set `DEVICE_URL` to your reachable device URL; [connection and examples](https://mcp.applesauceos.com/doc/http.md) explain how. Do not append this path to the public MCP URL.

## Parameters

| Parameter | Type | Meaning |
| --- | --- | --- |
| `on` | query string | 0 or 1. Omit to read the current value. |

## Response

JSON {status?:"success",avoidSafeMode:boolean}.

## Example

```sh
curl --fail-with-body "$DEVICE_URL/setSafeMode"
```

## Notes

This GET changes a preference when on is supplied. Restore temporary settings. on=1 enables avoidance, not safe mode. Default false; applies on the next device UI restart.

Check the HTTP status and any JSON error. [HTTP workflows and error handling](https://mcp.applesauceos.com/doc/http-guide.md) explain shared limits. [All endpoints](https://mcp.applesauceos.com/doc/http.md).
