get_problem_solution
Retrieve the full content of a community solution for a LeetCode problem using the solution's topic ID and problem slug. Requires reaching the maximum hint level.
Instructions
Retrieves the full content of a specific community solution. GATED: rejects with HINT_LEVEL_TOO_LOW unless the session for titleSlug has reached the maximum hint level. Pass the topicId returned by list_problem_solutions.
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": {
"topicId": "<topicId>",
"titleSlug": "<titleSlug>"
},
"name": "get_problem_solution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topicId | Yes | The unique topic ID of the solution, returned by list_problem_solutions. | |
| titleSlug | Yes | The URL slug of the problem the solution belongs to. Required to verify the session has reached the unlock level. |