list_problem_solutions
Lists community solution articles for a LeetCode problem and returns topic IDs needed to fetch the full solution content.
Instructions
Lists community solution articles for a problem (read-only, no auth). Returns metadata only (topicId)—not full content. Use get_problem_solution with the returned topicId to read the full article. Do not call this when you already have a topicId and need the solution text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"questionSlug": "<questionSlug>"
},
"name": "list_problem_solutions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Solutions to skip for pagination (default: 0) | |
| limit | No | Max solutions per page (default: 10) | |
| orderBy | No | Sort order: 'HOT' (default), 'MOST_VOTES', or 'MOST_RECENT' | HOT |
| tagSlugs | No | Filter by language or algorithm tags, e.g. ['python', 'dynamic-programming'] | |
| userInput | No | Keyword filter on solution title, content, or author (case-insensitive) | |
| questionSlug | Yes | Problem URL slug (e.g., 'two-sum')—same as in /problems/{slug} |