> ## Documentation Index
> Fetch the complete documentation index at: https://prefab.prefect.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ToggleState

> JSON Schema for the ToggleState action.

Flip a boolean state variable. No server round-trip.

```json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "type": "object",
  "properties": {
    "action": {
      "const": "toggleState",
      "default": "toggleState",
      "type": "string"
    },
    "key": {
      "description": "State key or dot-path to toggle",
      "type": "string"
    }
  },
  "required": [
    "action",
    "key"
  ]
}
```
