X: what your agent can read
Trawl reads public accounts, their posts and replies, single posts by URL with their replies, hashtags, and search with X’s own search syntax.
Tools that work here
list_posts: accounts, hashtags.read_post: posts, comments.read_profile: accounts.search_posts: keywords.
Accepted URLs and short forms
Pass a full URL or the short form. Each input maps to one kind of object and one canonical URL, which is what the answer prints.
| Accepted form | Kind | Tools | Example | Canonical URL in the answer |
|---|---|---|---|---|
| x.com/<handle>, twitter.com/<handle>, mobile.twitter.com/<handle>, x.com/<handle>/with_replies, x.com/<handle>/media | account | read_profile, list_posts | https://x.com/NASA | same |
| x.com/<handle>/status/<id>, x.com/<handle>/statuses/<id>, x.com/<handle>/status/<id>/photo/<n> | post | read_post | https://x.com/jack/status/20 | same |
| x.com/i/web/status/<id>, x.com/i/status/<id> | post | read_post | https://x.com/i/web/status/20 | same |
| x.com/hashtag/<tag> | hashtag | list_posts | https://x.com/hashtag/Artemis?src=hashtag_click | https://x.com/hashtag/Artemis |
| x.com/home, x.com/explore, x.com/search, x.com/settings → unsupported_url: reserved paths | unsupported_url | – | https://x.com/home | – |
| t.co/<code> → short link | short link, resolved once | after resolving | https://t.co/AbCdEf1234 | – |
| shorthand x:@<handle>, x:<handle>, twitter:@<handle> | account | read_profile, list_posts | x:@nasa | https://x.com/nasa |
| shorthand x:#<tag> | hashtag | list_posts | x:#artemis | https://x.com/hashtag/artemis |
A real answer
@NASA on X, read on 3 December 2026. This is the MCP form: one header line and minified JSON, indented here to read. Over REST the same data comes inside {"meta": {…}, "data": {…}} (both forms).
list_posts {"url":"x:@NASA","limit":2,"text_chars":50} 2 posts · x · 3 credits · 9,997 left · fresh
{
"author": {
"name": "NASA",
"handle": "NASA"
},
"items": [
{
"url": "https://x.com/NASA/status/2128238571848884457",
"kind": "post",
"text": "Our @NASAHubble telescope is gazing into the unive…[+170 chars]",
"created_at": "2026-12-02T21:23Z",
"stats": {
"likes": 1673,
"comments": 72,
"shares": 239,
"views": 286999
},
"media": "1 image",
"lang": "en"
},
{
"url": "https://x.com/NASA/status/2127855687975747659",
"kind": "post",
"text": "As December arrives, 2026 comes to a close. Here’s…[+209 chars]",
"created_at": "2026-12-01T20:01Z",
"stats": {
"likes": 2316,
"comments": 162,
"shares": 393,
"views": 893353
},
"media": "1 video",
"lang": "en"
}
]
} Prices
| Tool | Job | Unit | Base | Per item | Example |
|---|---|---|---|---|---|
read_profile | profile: accounts | profile | 1 | 1 | 11 for 10 |
list_posts | posts: accounts, hashtags | post | 1 | 1 | 11 for 10 |
read_post | post | post | 1 | 1 | 11 for 10 |
read_post | comments | comment | 1 | 1 | 11 for 10 |
search_posts | search | post | 1 | 1 | 11 for 10 |
Limits
- Default text length per item: 280 characters in lists (140 when the item has a title), 3,000 in
read_post, 200 per comment. Longer text ends with…[+N chars].text_charstakes 0 to 5,000;0leaves the text out and keeps titles. search_postspasses X search syntax through, for examplefrom:nasa lang:en.- In our tests,
search_postswithsort: "new"and a single word also matched account names and handles, so posts without the word came back. - Reserved paths such as
/homeor/exploreanswerunsupported_url. - Replies (
read_postwithcomments) come in X’s relevance order (the reply reader is asked forrelevance); there is no sort option. - Only public data. No private or logged-in content, no e-mail addresses or phone numbers.
The social web is one tool call away.
Fetch https://trawlmcp.com/setup.md and follow it to set me up with Trawl.