Lemmy Posts
lemmy_postsList Lemmy posts (federated Reddit-alternative; ActivityPub) from a community or feed. Sort by Active / Hot / New / TopDay / TopWeek / etc. Returns post title, body, author, upvotes, comment count. Use for federated open-source discussion forum content.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sort": "Hot",
"limit": 10,
"community": "asklemmy@lemmy.world"
},
"name": "lemmy_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | Active | Hot | New | Old | TopDay | TopWeek | TopMonth | TopYear | TopAll | MostComments | NewComments | |
| limit | No | ||
| type_ | No | All | Local | Subscribed | |
| instance | No | ||
| community | No | Community name (e.g. "asklemmy@lemmy.world") or id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | No | List of posts |