Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

206 KB
Raw Blame
{
  "client": "Claude Code 2.1.300",
  "recorded": "headless runs (claude -p) against a local stub that answered canned Messages replies; no model was called",
  "scrubbed": "client-written text, tool descriptions and schema annotations are placeholders; ids, paths and credentials are replaced",
  "setups": {
    "recipe": "the recipe environment, Bearer credential through ANTHROPIC_AUTH_TOKEN",
    "bare": "claude --bare with an apiKeyHelper, which sends the same credential as Authorization: Bearer and x-api-key",
    "without_recipe": "ANTHROPIC_AUTH_TOKEN only, without CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS"
  },
  "cases": [
    {
      "name": "first_turn",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,effort-2025-11-24",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          },
          {
            "role": "system",
            "content": "(client environment and session context)"
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "output_config": {
          "effort": "high"
        },
        "stream": true
      },
      "expect": {
        "error": "messages.1.role: role \"system\" is not supported in messages; use the top-level system parameter"
      }
    },
    {
      "name": "first_turn_retry_without_effort",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          },
          {
            "role": "system",
            "content": "(client environment and session context)"
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "error": "messages.1.role: role \"system\" is not supported in messages; use the top-level system parameter"
      }
    },
    {
      "name": "first_turn_retry_without_system_turns",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 2)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 3)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 4)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 5)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 6)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 7)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 20,
          "include_reasoning": true
        }
      }
    },
    {
      "name": "tool_loop",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 2)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 3)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 4)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 5)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 6)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 7)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool_use",
                "id": "toolu_01",
                "name": "Bash",
                "input": {
                  "command": "echo capture-ok",
                  "description": "(description)"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_01",
                "content": "(tool output)",
                "is_error": false,
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user",
            "assistant",
            "tool"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 20,
          "include_reasoning": true
        }
      }
    },
    {
      "name": "image_tool_result",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 2)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 3)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 4)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 5)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 6)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 7)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool_use",
                "id": "toolu_01",
                "name": "Read",
                "input": {
                  "file_path": "/workspace/pixel.png"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_01",
                "content": [
                  {
                    "type": "image",
                    "source": {
                      "type": "base64",
                      "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
                      "media_type": "image/png"
                    }
                  },
                  {
                    "type": "text",
                    "text": "(tool output)"
                  }
                ],
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user",
            "assistant",
            "tool",
            "user"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 20,
          "include_reasoning": true
        }
      }
    },
    {
      "name": "image_removed_retry",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 2)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 3)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 4)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 5)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 6)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 7)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool_use",
                "id": "toolu_01",
                "name": "Read",
                "input": {
                  "file_path": "/workspace/pixel.png"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_01",
                "content": [
                  {
                    "type": "text",
                    "text": "(tool output)"
                  },
                  {
                    "type": "text",
                    "text": "(tool output)"
                  }
                ],
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user",
            "assistant",
            "tool"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 20,
          "include_reasoning": true
        }
      }
    },
    {
      "name": "parallel_tool_use",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 2)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 3)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 4)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 5)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 6)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 7)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool_use",
                "id": "toolu_01",
                "name": "Bash",
                "input": {
                  "command": "echo one",
                  "description": "(description)"
                }
              },
              {
                "type": "tool_use",
                "id": "toolu_02",
                "name": "Bash",
                "input": {
                  "command": "echo two",
                  "description": "(description)"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_01",
                "content": "(tool output)",
                "is_error": false
              },
              {
                "type": "tool_result",
                "tool_use_id": "toolu_02",
                "content": "(tool output)",
                "is_error": false,
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user",
            "assistant",
            "tool",
            "tool"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 20,
          "include_reasoning": true
        }
      }
    },
    {
      "name": "side_query_classifier_stage_one",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "60"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "max_tokens": 2112,
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          }
        ],
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "(user prompt)"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              },
              {
                "type": "text",
                "text": "(user prompt)"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          }
        ],
        "stop_sequences": [
          "</block>"
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        }
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user"
          ],
          "stop": [
            "</block>"
          ],
          "stream": false,
          "max_tokens": 2112,
          "tool_count": 0,
          "include_reasoning": false
        }
      }
    },
    {
      "name": "side_query_classifier_stage_two",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "60"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "max_tokens": 10240,
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          }
        ],
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "(user prompt)"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              },
              {
                "type": "text",
                "text": "(user prompt)"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        }
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user"
          ],
          "stream": false,
          "max_tokens": 10240,
          "tool_count": 0,
          "include_reasoning": false
        }
      }
    },
    {
      "name": "subagent_first_turn",
      "setup": "recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,effort-2025-11-24",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          },
          {
            "role": "system",
            "content": "(client environment and session context)"
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "output_config": {
          "effort": "high"
        },
        "stream": true
      },
      "expect": {
        "error": "messages.1.role: role \"system\" is not supported in messages; use the top-level system parameter"
      }
    },
    {
      "name": "bare_first_turn",
      "setup": "bare",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,effort-2025-11-24",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-api-key": "(token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "(user prompt)",
                "cache_control": {
                  "type": "ephemeral"
                }
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          }
        ],
        "tools": [
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32768,
        "thinking": {
          "type": "adaptive"
        },
        "output_config": {
          "effort": "high"
        },
        "stream": true
      },
      "expect": {
        "chat": {
          "roles": [
            "system",
            "user"
          ],
          "stream": true,
          "max_tokens": 32768,
          "tool_count": 3,
          "include_reasoning": true,
          "reasoning_effort": "high"
        }
      }
    },
    {
      "name": "without_recipe_first_turn",
      "setup": "without_recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-tool-changes-2026-07-01,effort-2025-11-24",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "system",
            "content": [
              {
                "type": "text",
                "cache_control": {
                  "type": "ephemeral"
                },
                "text": "(client environment and session context)"
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 3)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32000,
        "thinking": {
          "type": "adaptive",
          "display": "omitted"
        },
        "context_management": {
          "edits": [
            {
              "type": "clear_thinking_20251015",
              "keep": "all"
            }
          ]
        },
        "output_config": {
          "effort": "high"
        },
        "stream": true
      },
      "expect": {
        "error": "context_management: Extra inputs are not permitted (Claude Code: set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1)"
      }
    },
    {
      "name": "without_recipe_tool_loop",
      "setup": "without_recipe",
      "path": "/v1/messages?beta=true",
      "headers": {
        "anthropic-version": "2023-06-01",
        "anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-tool-changes-2026-07-01,effort-2025-11-24",
        "anthropic-dangerous-direct-browser-access": "true",
        "authorization": "Bearer (token)",
        "x-app": "cli",
        "x-claude-code-session-id": "(session id)",
        "content-type": "application/json",
        "accept": "application/json",
        "user-agent": "claude-cli/2.1.300 (external, sdk-cli)",
        "x-stainless-lang": "js",
        "x-stainless-package-version": "0.128.0",
        "x-stainless-retry-count": "0",
        "x-stainless-timeout": "600"
      },
      "body": {
        "model": "zai-org/GLM-5.3-Flash:relay",
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "<system-reminder>\n(client reminder 1)\n</system-reminder>\n"
              },
              {
                "type": "text",
                "text": "(user prompt)"
              }
            ]
          },
          {
            "role": "system",
            "content": "(client environment and session context)"
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool_use",
                "id": "toolu_03",
                "name": "Bash",
                "input": {
                  "command": "echo capture-ok",
                  "description": "(description)"
                }
              }
            ]
          },
          {
            "role": "user",
            "content": [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_03",
                "content": "(tool output)",
                "is_error": false
              }
            ]
          },
          {
            "role": "system",
            "content": [
              {
                "type": "text",
                "cache_control": {
                  "type": "ephemeral"
                },
                "text": "(client environment and session context)"
              }
            ]
          }
        ],
        "system": [
          {
            "type": "text",
            "text": "(client system prompt block 1)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 2)"
          },
          {
            "type": "text",
            "cache_control": {
              "type": "ephemeral"
            },
            "text": "(client system prompt block 3)"
          }
        ],
        "tools": [
          {
            "name": "Agent",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "description": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "subagent_type": {
                  "type": "string"
                },
                "model": {
                  "type": "string",
                  "enum": [
                    "sonnet",
                    "opus",
                    "haiku",
                    "fable"
                  ]
                },
                "effort": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "remote"
                  ]
                }
              },
              "required": [
                "description",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Bash",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "timeout": {
                  "type": "number"
                },
                "description": {
                  "type": "string"
                },
                "run_in_background": {
                  "type": "boolean"
                },
                "dangerouslyDisableSandbox": {
                  "type": "boolean"
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronCreate",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "cron": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "recurring": {
                  "type": "boolean"
                },
                "durable": {
                  "type": "boolean"
                }
              },
              "required": [
                "cron",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronDelete",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "CronList",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {},
              "additionalProperties": false
            }
          },
          {
            "name": "Edit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "old_string": {
                  "type": "string"
                },
                "new_string": {
                  "type": "string"
                },
                "replace_all": {
                  "default": false,
                  "type": "boolean"
                }
              },
              "required": [
                "file_path",
                "old_string",
                "new_string"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "EnterWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "ExitWorktree",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "keep",
                    "remove"
                  ]
                },
                "discard_changes": {
                  "type": "boolean"
                }
              },
              "required": [
                "action"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ListAgents",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string",
                  "maxLength": 256
                },
                "q": {
                  "type": "string",
                  "maxLength": 256
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "NotebookEdit",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "notebook_path": {
                  "type": "string"
                },
                "cell_id": {
                  "type": "string"
                },
                "new_source": {
                  "type": "string"
                },
                "cell_type": {
                  "type": "string",
                  "enum": [
                    "code",
                    "markdown"
                  ]
                },
                "edit_mode": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "insert",
                    "delete"
                  ]
                }
              },
              "required": [
                "notebook_path",
                "new_source"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Read",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "limit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "pages": {
                  "type": "string"
                },
                "allow_large": {
                  "type": "boolean"
                }
              },
              "required": [
                "file_path"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ReportFindings",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "xhigh",
                    "max"
                  ]
                },
                "findings": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": "string"
                      },
                      "line": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "summary": {
                        "type": "string"
                      },
                      "short_summary": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "failure_scenario": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string",
                        "maxLength": 40
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "CONFIRMED",
                          "PLAUSIBLE"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "fixed",
                          "skipped",
                          "no_change_needed"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "summary",
                      "failure_scenario"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "findings"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "ScheduleWakeup",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "delaySeconds": {
                  "type": "number"
                },
                "reason": {
                  "type": "string"
                },
                "prompt": {
                  "type": "string"
                },
                "stop": {
                  "type": "boolean"
                },
                "noop": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "SendMessage",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^[^\\n\\r]*$"
                    },
                    {
                      "pattern": "^[\\s\\S]{0,300}$"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "maxLength": 200
                },
                "message": {
                  "default": "",
                  "type": "string"
                },
                "notify_when_idle": {
                  "type": "boolean"
                }
              },
              "required": [
                "to",
                "message"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Skill",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "skill": {
                  "type": "string"
                },
                "args": {
                  "type": "string"
                }
              },
              "required": [
                "skill"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "TaskStop",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "task_id": {
                  "type": "string"
                },
                "shell_id": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "WebFetch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "prompt": {
                  "type": "string"
                },
                "offset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "url",
                "prompt"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "WebSearch",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "query": {
                  "type": "string",
                  "minLength": 2
                },
                "allowed_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "blocked_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "query"
              ],
              "additionalProperties": false
            }
          },
          {
            "name": "Workflow",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "script": {
                  "type": "string",
                  "maxLength": 524288
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "args": {},
                "scriptPath": {
                  "type": "string"
                },
                "resumeFromRunId": {
                  "type": "string",
                  "pattern": "^wf_[a-z0-9-]{6,}$"
                }
              },
              "additionalProperties": false
            }
          },
          {
            "name": "Write",
            "description": "(tool description)",
            "input_schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "properties": {
                "file_path": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              },
              "required": [
                "file_path",
                "content"
              ],
              "additionalProperties": false
            }
          }
        ],
        "metadata": {
          "user_id": "{\"device_id\":\"(device id)\",\"account_uuid\":\"\",\"session_id\":\"(session id)\"}"
        },
        "max_tokens": 32000,
        "thinking": {
          "type": "adaptive",
          "display": "omitted"
        },
        "context_management": {
          "edits": [
            {
              "type": "clear_thinking_20251015",
              "keep": "all"
            }
          ]
        },
        "output_config": {
          "effort": "high"
        },
        "stream": true
      },
      "expect": {
        "error": "context_management: Extra inputs are not permitted (Claude Code: set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1)"
      }
    }
  ]
}