{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twtapi-com/json-schema/twtapi-com-agent-invoke-request-schema.json",
  "title": "AgentInvokeRequest",
  "description": "Agent 接口调用入参。\n\nparams 用 default_factory 而非直接 ``= {}``：可变默认值会在\n多次请求间共享同一对象，是典型的串数据隐患。\nsession_id 为空时由服务端开启新会话。",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twtapi-com-openapi.json#/components/schemas/AgentInvokeRequest",
  "properties": {
    "tool": {
      "type": "string",
      "title": "Tool"
    },
    "params": {
      "additionalProperties": true,
      "type": "object",
      "title": "Params"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    }
  },
  "type": "object",
  "required": [
    "tool"
  ]
}