search_problems
Browse and discover LeetCode problems by category, tags, difficulty, or keywords, with pagination via limit and offset. Returns matching problems as JSON for selection or exploration.
Instructions
Searches LeetCode problems by category, tags, difficulty, and keywords (read-only, no auth). Supports pagination via limit/offset. Returns matching problem list as JSON. Use get_problem when you already know the titleSlug; use this to browse or discover problems.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_problems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Topic tags to filter by, e.g. ['array', 'dynamic-programming']. Omit for no tag filter. | |
| limit | No | Max results per page (default: 10) | |
| offset | No | Results to skip for pagination (default: 0) | |
| category | No | Problem set category (e.g., 'algorithms', 'database'). Default: 'all-code-essentials'. | all-code-essentials |
| difficulty | No | Difficulty filter. Omit for all levels. | |
| searchKeywords | No | Keyword search in problem titles and descriptions |