get_answers
Retrieve answers for a StackOverflow question using its ID. Fetches only the answers to avoid redundant question data. Customize answer count, sorting, and markdown conversion.
Instructions
Get answers for a specific StackOverflow question.
Fetches only answers without re-fetching the question body.
Use this when you already have the question context and just need the responses.
Args:
question_id: StackOverflow question ID
max_answers: Maximum number of answers to return (1-50)
sort: Sort order (votes, creation, activity)
convert_to_markdown: Convert HTML content to markdown
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": {
"question_id": "<question_id>"
},
"name": "get_answers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | votes | |
| max_answers | No | ||
| question_id | Yes | ||
| convert_to_markdown | No |