# X: what your agent can read

X with Trawl: Public accounts, their posts and replies, single posts by URL with their replies, hashtags, and search with X’s own search syntax. Accepted URLs, a real answer and the price of each job.

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](/docs/tools#output)).

Call

```
list_posts {"url":"x:@NASA","limit":2,"text_chars":50}
```

Answer

```json
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

Credits. A fresh, successful read costs base + per item × min(items read, items asked for). Items are posts, videos, profiles, comments, transcripts or job ads. A search with a date filter also pays for the older items we read and leave out; a read that finds nothing to read pays only the base. Answers from the cache cost 1 credit, errors cost nothing, and the account tool is free. `read_post` with comments costs the post job plus the comments job. One Reddit thread with 20 comments: 23 + 80 = 103 credits.

| 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_chars` takes 0 to 5,000; `0` leaves the text out and keeps titles.
- `search_posts` passes X search syntax through, for example `from:nasa lang:en`.
- In our tests, `search_posts` with `sort: "new"` and a single word also matched account names and handles, so posts without the word came back.
- Reserved paths such as `/home` or `/explore` answer `unsupported_url`.
- Replies (`read_post` with `comments`) come in X’s relevance order (the reply reader is asked for `relevance`); there is no sort option.
- Only public data. No private or logged-in content, no e-mail addresses or phone numbers.

> Trawl is not affiliated with or endorsed by X. The name describes which public pages it reads.

---
Updated 2026-12-03. HTML version: https://trawlmcp.com/docs/x
