Loading...
Loading...
Compose and post to X.com using Chrome CDP automation. Use when user asks to "post to X", "tweet", "draft a tweet", "share on X", or "write a thread". Handles Chrome launch, text input with emoji/unicode support, and multi-paragraph formatting via real browser automation (no API costs, bypasses anti-bot detection).
npx skill4agent add junghoonghae/skills x-composerchrome-remote-interfacenpm install -g chrome-remote-interfacescripts/cdp-launch.jsscripts/cdp-type.jsscripts/cdp-launch.jsNODE_PATH=$(npm root -g) node scripts/cdp-launch.js| URL | Purpose |
|---|---|
| (default) | |
| Open home feed |
| Search posts |
~/.chrome-cdp-profilescripts/cdp-type.jsecho '[{"text":"Hello world!"}]' | NODE_PATH=$(npm root -g) node scripts/cdp-type.js| Segment | Effect |
|---|---|
| Insert text (emoji/unicode safe) |
| Single line break |
| Multiple line breaks |
cat << 'EOF' | NODE_PATH=$(npm root -g) node scripts/cdp-type.js
[
{"text": "Hook line with emoji"},
{"enter": 2},
{"text": "Main content paragraph."},
{"enter": 2},
{"text": "- Point one"},
{"enter": true},
{"text": "- Point two"},
{"enter": 2},
{"text": "https://example.com"},
{"enter": true},
{"text": "#hashtag #tags"}
]
EOF| Issue | Fix |
|---|---|
| Chrome not connecting | |
| No X.com tab found | Launch Chrome first, wait 3s |
| Text not typing | Click compose box in browser first |
| Module not found | |
| Login required | Use default profile path ( |
NODE_PATH=$(npm root -g)chrome-remote-interfaceInput.insertText()--user-data-dir