Search & Analysis v0.1.0

openclaw-x

Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark.

bosshuman 更新于 2026-03-04 1 浏览
下载 SKILL

技能说明

Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark.

使用场景

Control your X/Twitter account via a local API.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/openclaw-x
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: openclaw-x
version: 0.1.0
description: Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark.
---

# OpenClaw X

Control your X/Twitter account via a local API.

## Prerequisites

1. Download the executable from [GitHub Release](https://github.com/bosshuman/openclaw-x/releases)
2. Export your X cookies from Chrome (using Cookie-Editor extension), save as `cookies.json` in the same directory
3. Run the executable, ensure the service is running at `http://localhost:19816`

## Available Actions

### 1. Get Home Timeline

```bash
curl http://localhost:19816/timeline?count=20
```

Returns the latest tweets including content, author, media URLs, etc.

### 2. Get Tweet Details

```bash
curl http://localhost:19816/tweet/{tweet_id}
```

Supports both tweet ID and full URL (e.g. `https://x.com/user/status/123456`).

### 3. Search Tweets

```bash
curl "http://localhost:19816/search?q=keyword&sort=Latest&count=20"
```

Parameters:
- `q`: Search keyword (required)
- `sort`: `Latest` or `Top`, default Latest
- `count`: Number of results, default 20

### 4. Post a Tweet

```bash
curl -X POST http://localhost:19816/tweet \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello world"}'
```

Reply to a tweet:

```bash
curl -X POST http://localhost:19816/tweet \
  -H "Content-Type: application/json" \
  -d '{"text": "Reply content", "reply_to": "original_tweet_id"}'
```

### 5. Like a Tweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/like
```

### 6. Retweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/retweet
```

### 7. Bookmark a Tweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/bookmark
```

### 8. Get User Info

```bash
curl http://localhost:19816/user/{username}
```

Returns username, avatar, bio, follower count, etc.

### 9. Get User Tweets

```bash
curl http://localhost:19816/user/{username}/tweets?count=20
```

## Common Use Cases

1. "Show me what's new on my timeline"
2. "Search for the latest tweets about AI Agents"
3. "Post a tweet saying: What a beautiful day!"
4. "Like this tweet https://x.com/xxx/status/123"
5. "Check what @elonmusk has been posting"
6. "Bookmark this tweet"

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。