Skip to content

magic/21st_magic_component_inspiration error #49

@jzr-supove

Description

@jzr-supove

Magic returned this MCP schema validation error when the AI agent (codex) asked it for a stronger visual landing-page reference:

Tool call error: tool call failed for magic/21st_magic_component_inspiration

Caused by:
Mcp error: -32602: MCP error -32602: Invalid tools/call result:

[
  {
    "code": "invalid_union",
    "errors": [
      [
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "text"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ],
      [
        {
          "code": "invalid_value",
          "values": [
            "image"
          ],
          "path": [
            "type"
          ],
          "message": "Invalid input: expected \"image\""
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "data"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "mimeType"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ],
      [
        {
          "code": "invalid_value",
          "values": [
            "audio"
          ],
          "path": [
            "type"
          ],
          "message": "Invalid input: expected \"audio\""
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "data"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "mimeType"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ],
      [
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "name"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "uri"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "code": "invalid_value",
          "values": [
            "resource_link"
          ],
          "path": [
            "type"
          ],
          "message": "Invalid input: expected \"resource_link\""
        }
      ],
      [
        {
          "code": "invalid_value",
          "values": [
            "resource"
          ],
          "path": [
            "type"
          ],
          "message": "Invalid input: expected \"resource\""
        },
        {
          "code": "invalid_union",
          "errors": [
            [
              {
                "expected": "object",
                "code": "invalid_type",
                "path": [],
                "message": "Invalid input: expected object, received undefined"
              }
            ],
            [
              {
                "expected": "object",
                "code": "invalid_type",
                "path": [],
                "message": "Invalid input: expected object, received undefined"
              }
            ]
          ],
          "path": [
            "resource"
          ],
          "message": "Invalid input"
        }
      ]
    ],
    "path": [
      "content",
      0
    ],
    "message": "Invalid input"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions