Request Controls

Non-text request controls sent by default in the SDK query request.

These are request fields that affect model/runtime behavior but are not prompt text blocks.

{
  "model": "claude-opus-4-8",
  "max_tokens": 64000,
  "thinking": {
    "type": "adaptive"
  },
  "context_management": {
    "edits": [
      {
        "type": "clear_thinking_20251015",
        "keep": "all"
      }
    ]
  },
  "output_config": {
    "effort": "high"
  },
  "stream": true,
  "metadata": {
    "user_id": "{\"device_id\":\"b42919dc2f35505e77a6beb07ee5d44b2f1047e6e5e905ebd7b198e6bd56a116\",\"account_uuid\":\"\",\"session_id\":\"fe79bd85-e0f6-4811-b886-8af6dc007e6d\"}"
  }
}