[
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "protocolVersion": "2025-03-26",
      "capabilities": {
        "logging": {},
        "completions": {},
        "tools": {}
      },
      "serverInfo": {
        "name": "Darkwood original level generator",
        "version": "1.0.0"
      }
    }
  },
  {
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
      "tools": [
        {
          "name": "generate_original_level",
          "inputSchema": {
            "type": "object",
            "properties": {
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              }
            },
            "required": [
              "prompt"
            ],
            "additionalProperties": false
          },
          "description": "Generate and validate one original platformer level through Symfony AI. Calls OpenAI, returns JSON and does not write files."
        }
      ]
    }
  },
  {
    "jsonrpc": "2.0",
    "id": 3,
    "error": {
      "code": -32602,
      "message": "Invalid parameters for tool 'generate_original_level': Property '/prompt': String must be at least 1 characters long.",
      "data": {
        "validation_errors": [
          {
            "pointer": "/prompt",
            "keyword": "minLength",
            "message": "String must be at least 1 characters long."
          }
        ]
      }
    }
  },
  {
    "jsonrpc": "2.0",
    "id": 4,
    "result": {
      "content": [
        {
          "type": "text",
          "text": "{\"mode\":\"real_ai\",\"agent\":\"level_generator\",\"level\":{\"name\":\"Whispering Grove\",\"tile_size\":16,\"width\":48,\"height\":15,\"player_start\":{\"x\":2,\"y\":12},\"goal\":{\"x\":44,\"y\":9},\"terrain\":[{\"type\":\"ground\",\"x\":0,\"y\":13,\"w\":48,\"h\":2},{\"type\":\"grassy_ridge\",\"x\":6,\"y\":11,\"w\":10,\"h\":2},{\"type\":\"small_plateau\",\"x\":20,\"y\":9,\"w\":5,\"h\":1},{\"type\":\"tall_stump\",\"x\":28,\"y\":8,\"w\":3,\"h\":5},{\"type\":\"floating_log\",\"x\":34,\"y\":10,\"w\":4,\"h\":1},{\"type\":\"stone_block\",\"x\":40,\"y\":11,\"w\":3,\"h\":2}],\"objects\":[{\"type\":\"tree\",\"x\":4,\"y\":10},{\"type\":\"tree\",\"x\":12,\"y\":9},{\"type\":\"log_decor\",\"x\":22,\"y\":8},{\"type\":\"coin\",\"x\":21,\"y\":8},{\"type\":\"coin\",\"x\":23,\"y\":8},{\"type\":\"coin\",\"x\":36,\"y\":9},{\"type\":\"goal_flag\",\"x\":44,\"y\":9}],\"metadata\":{\"theme\":\"forest\",\"difficulty\":\"easy\",\"author\":\"original-level-generator\",\"description\":\"A short, safe forest run with gentle platforms and a visible goal flag on a stump.\"}},\"warnings\":[\"Geometry checks do not establish playability or copyright clearance.\"]}"
        }
      ],
      "isError": false,
      "structuredContent": {
        "mode": "real_ai",
        "agent": "level_generator",
        "level": {
          "name": "Whispering Grove",
          "tile_size": 16,
          "width": 48,
          "height": 15,
          "player_start": {
            "x": 2,
            "y": 12
          },
          "goal": {
            "x": 44,
            "y": 9
          },
          "terrain": [
            {
              "type": "ground",
              "x": 0,
              "y": 13,
              "w": 48,
              "h": 2
            },
            {
              "type": "grassy_ridge",
              "x": 6,
              "y": 11,
              "w": 10,
              "h": 2
            },
            {
              "type": "small_plateau",
              "x": 20,
              "y": 9,
              "w": 5,
              "h": 1
            },
            {
              "type": "tall_stump",
              "x": 28,
              "y": 8,
              "w": 3,
              "h": 5
            },
            {
              "type": "floating_log",
              "x": 34,
              "y": 10,
              "w": 4,
              "h": 1
            },
            {
              "type": "stone_block",
              "x": 40,
              "y": 11,
              "w": 3,
              "h": 2
            }
          ],
          "objects": [
            {
              "type": "tree",
              "x": 4,
              "y": 10
            },
            {
              "type": "tree",
              "x": 12,
              "y": 9
            },
            {
              "type": "log_decor",
              "x": 22,
              "y": 8
            },
            {
              "type": "coin",
              "x": 21,
              "y": 8
            },
            {
              "type": "coin",
              "x": 23,
              "y": 8
            },
            {
              "type": "coin",
              "x": 36,
              "y": 9
            },
            {
              "type": "goal_flag",
              "x": 44,
              "y": 9
            }
          ],
          "metadata": {
            "theme": "forest",
            "difficulty": "easy",
            "author": "original-level-generator",
            "description": "A short, safe forest run with gentle platforms and a visible goal flag on a stump."
          }
        },
        "warnings": [
          "Geometry checks do not establish playability or copyright clearance."
        ]
      }
    }
  }
]