extract_reddit
Analyze Reddit community sentiment by fetching posts, scores, comment counts, and timestamps from subreddit or search URLs.
Instructions
Extract posts and community sentiment from Reddit via the public JSON API. Accepts a subreddit URL (https://www.reddit.com/r/MachineLearning/.json), a search URL, or a subreddit shorthand ('r/MachineLearning'). Returns titles, authors, scores, comment counts, and per-post timestamps.
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": {
"url": "<url>"
},
"name": "extract_reddit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Subreddit URL, search URL, or 'r/<subreddit>' shorthand | |
| max_length | No |