Read one linux.do post
get_postFetch a single forum post by topic and post ID as Markdown text, returning its images and truncation status so callers can read one known post without loading a topic window.
Instructions
Read a single post as text.
Prefer this over get_topic when the caller already knows the post id: it fetches one post instead of the topic's default window.
body holds the author's Markdown, images the pictures the post embeds,
and truncated says whether max_post_chars cut it.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post id from a topic read. | |
| topic_id | Yes | Topic the post belongs to. | |
| include_raw | No | Return Discourse's own Markdown instead of cooked HTML reduced to text. About half the characters and keeps tables and link targets; turn it off only if you want the simplified text. | |
| max_post_chars | No | Cut the body at this many characters and set truncated when it was cut; raise it for one long post instead of reading a silently partial body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post id; pass it to get_post. | |
| body | Yes | Post body as Markdown. Discourse's own raw text when requested and returned, otherwise cooked HTML reduced to text. Empty for a small action post, which carries its meaning in `action_code`. BBCode quotes are rewritten as Markdown blockquotes, upload:// image short links are replaced with the CDN URLs in `images` when the counts line up, and Discourse's |WxH image size suffix is dropped from alt text. | |
| images | No | Images in document order, indexed 0..n-1 as get_post_image takes them; emoji and avatars are excluded because they are decoration. | |
| username | Yes | Author username. | |
| truncated | No | True when body was cut at max_post_chars. Read it again with a larger cap to see the rest; nothing else reports the cut. | |
| created_at | Yes | ISO 8601 creation timestamp. | |
| action_code | No | Discourse's code for a small action post, e.g. pinned_globally.enabled or closed.enabled. Such a post records what the system did and has an empty body; null on a post a person wrote. | |
| post_number | Yes | 1-based position in the topic. Deleted posts leave gaps, so a window's numbers need not be contiguous. |