Browse linux.do topics
browse_topicsList linux.do topics by recency, rank, category, tag, or filter to discover topic IDs you can pass to get_topic for reading posts.
Instructions
List topics on linux.do by recency, rank, category, tag, or filter.
Use this to discover topic ids; pass one to get_topic for the actual posts.
linux.do needs a login for full-text search, so this filter surface is the way in: filter reorders by likes, views, or replies and narrows by state and tag, with no keyword matching. hot is Discourse's daily score, not velocity, and is the same
call as top with period=daily.
To page, pass the previous page's next_page back as page; it is null on
the last page. A page holds per_page topics (30, or 50 for top/hot), so leave
limit at 50 while paging: a smaller limit trims the reply, reports how
many it withheld in trimmed, and withholds next_page, because a page
cursor cannot resume mid-page. Raise limit to read the withheld tail.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browse_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag name from list_tags (ChatGPT, 公告); required when sort=tag, optional when sort=filter. ASCII slugs work too, but a Chinese tag's upstream slug (31-tag) does not route — pass the name. | |
| page | No | 0-based page index. No upper bound: keep going until next_page is null. | |
| sort | No | latest (newest), top (ranked inside period), hot (today's top score; same route and result as sort=top with period=daily), category (needs category_id), tag (needs tag), filter (needs order and optionally status/tag). | latest |
| limit | No | Keep only this many topics from the page. A page holds per_page topics upstream (30, or 50 for top/hot). Trimming reports `trimmed` and withdraws `next_page`, because a page cursor cannot resume mid-page; keep 50 when you plan to page. | |
| order | No | How sort=filter ranks its topics: newest, most liked, most viewed, or most replies. Also read by sort=category, where it ranks the whole category (that route ignores period). Ignored by the other sorts. Pinned topics keep their slots whatever this is, so skip them when ranking. | latest |
| period | No | Ranking window for sort=top. Ignored by every other sort, including hot, which is pinned to daily. | weekly |
| status | No | Only read when sort=filter: restrict to one topic state. | |
| category_id | No | Category id from list_categories; required when sort=category. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topics | Yes | Topics on this page, in upstream order. | |
| trimmed | No | Topics `limit` cut from this page. Non-zero means the page held more and `next_page` was withheld, because a page cursor cannot resume mid-page: raise `limit` to read them. Zero on an untrimmed page. | |
| per_page | No | How many topics Discourse puts on a page for this sort. A `limit` you passed trims `topics` below this and withdraws `next_page`; see `trimmed`. | |
| next_page | No | The page index to pass back as `page` for the next window; null on the last page. | |
| more_topics_url | No | Upstream cursor path as Discourse sends it; null on the last page. |