{
  "annotations": {
    "idempotentHint": false,
    "readOnlyHint": true,
    "title": "Search issues"
  },
  "description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
  "inputSchema": {
    "properties": {
      "fields": {
        "description": "Subset of fields to return for each issue result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body', 'reactions', and 'labels' in particular drops the largest per-result data.",
        "items": {
          "enum": [
            "number",
            "title",
            "body",
            "state",
            "state_reason",
            "draft",
            "locked",
            "html_url",
            "user",
            "author_association",
            "labels",
            "assignee",
            "assignees",
            "milestone",
            "comments",
            "reactions",
            "created_at",
            "updated_at",
            "closed_at",
            "closed_by",
            "type",
            "repository_url",
            "pull_request",
            "field_values"
          ],
          "type": "string"
        },
        "type": "array"
      },
      "order": {
        "description": "Sort order",
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "owner": {
        "description": "Optional repository owner. If provided with repo, only issues for this repository are listed.",
        "type": "string"
      },
      "page": {
        "description": "Page number for pagination (min 1)",
        "minimum": 1,
        "type": "number"
      },
      "perPage": {
        "description": "Results per page for pagination (min 1, max 100)",
        "maximum": 100,
        "minimum": 1,
        "type": "number"
      },
      "query": {
        "description": "Search query using GitHub issues search syntax",
        "type": "string"
      },
      "repo": {
        "description": "Optional repository name. If provided with owner, only issues for this repository are listed.",
        "type": "string"
      },
      "sort": {
        "description": "Sort field by number of matches of categories, defaults to best match",
        "enum": [
          "comments",
          "reactions",
          "reactions-+1",
          "reactions--1",
          "reactions-smile",
          "reactions-thinking_face",
          "reactions-heart",
          "reactions-tada",
          "interactions",
          "created",
          "updated"
        ],
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "name": "search_issues"
}