Fetch the comment thread on a LinkedIn post
linkedin_get_activity_commentsGet the comments on a LinkedIn post by its activity URN. Each comment includes the text, author, time posted and like and reply counts. Page through the rest with start. Read-only: returns public data and changes nothing. Costs 1 credit per result returned, with a minimum of 1 credit per request.
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": {
"activityUrn": "<activityUrn>",
"count": "<count>"
},
"name": "linkedin_get_activity_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of results to return (1–100). Defaults to 10. | |
| start | No | Number of results to skip. Defaults to 0. | |
| cacheOnly | No | Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| sortOrder | No | Comment ordering: "relevance" for LinkedIn's "Most relevant" ranking (default), "recent" for newest first. | |
| activityUrn | Yes | The activity to fetch comments for — a `urn:li:activity:<id>` or the post link, e.g. "urn:li:activity:7300000000000000000" or "https://www.linkedin.com/feed/update/urn:li:activity:7300000000000000000/". | |
| cacheMaxAgeHours | No | Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24. |