Fetch one image from a post on linux.do
get_post_imageFetch one image from a forum post as an MCP image block for direct viewing, using topic and post IDs and an optional index to page through images without loading every image at once.
Instructions
Return one post image as an MCP image block, so it can be viewed directly.
Read the post first: images there lists what this tool can fetch, in
document order, emoji and avatars excluded. One image per call keeps a long
topic from arriving as megabytes; ask again with another index for the rest.
Only files on ldstatic.com are fetched, so nothing else a post links to is
ever requested. An original larger than max_bytes comes back as its
downscaled render, and the text line says so.
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": {
"topic_id": "<topic_id>",
"post_id": "<post_id>"
},
"name": "get_post_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | full (the original file) or thumb (the downscaled render Discourse shows inline). A tall image has an unreadable thumb, so full is the default. When Discourse has no render, thumb returns the original and the note says so. | full |
| index | No | 0-based position in that post's `images` list, which get_post and get_topic already returned; the default is the first picture. | |
| post_id | Yes | Post whose image you want. | |
| topic_id | Yes | Topic the post belongs to. | |
| max_bytes | No | Refuse an image larger than this and fall back to the render; lower it when the conversation has to stay small. |