Skip to content

Trình dựng schema công cụ

Dựng schema công cụ cho function-calling và MCP đạt chế độ nghiêm ngặt ngay lần đầu, và lint schema đã dán theo hợp đồng của chế độ nghiêm ngặt — additionalProperties, required-sync, defaults, enums — kèm tự động sửa một cú nhấp cho mọi lỗi cơ học. Chạy hoàn toàn trong trình duyệt của bạn.

AI & Agents
cosmodev ~/tools/tool-schema-builder-
{
  "name": "get_weather",
  "description": "Current weather for a city",
  "input_schema": {
    "type": "object",
    "properties": {
      "city": {
        "type": "string",
        "description": "City name"
      }
    },
    "required": [
      "city"
    ],
    "additionalProperties": false
  }
}