Expand hidden comments
expand_commentsFetch comments hidden behind get_post “[more: …]” stubs as reply trees, using comment IDs and returning new stubs or unfetched IDs for follow-up calls.
Instructions
Load the comments behind get_post's "[more: ...]" stubs, rendered as reply trees.
Up to 500 ids per call (100 per Reddit request, sent one at a time). New stubs found inside the expanded replies are listed the same way, so repeat until coverage is enough. Ids not fetched because of the budget are listed for the next call. A "[continue ...]" line is not an id list: open it with get_post(comment_id=...).
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": {
"post": "<post>",
"comment_ids": "<comment_ids>"
},
"name": "expand_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | Yes | The post the comments belong to (id, fullname or URL). | |
| sort | No | Use the same sort as the get_post call that listed the ids. | top |
| max_chars | No | Response budget in characters, 2000 to 200000. | |
| comment_ids | Yes | Comment ids from the [more ...] lines of get_post output: a list, or one comma separated string. Up to 500 are fetched per call; the rest are listed for the next. | |
| include_nsfw | No | Show posts, comments and communities Reddit marks NSFW (18+). Off by default; hidden items are counted in the output. A server setting can keep them hidden even when true. |