This skill should be used when the user asks to "scrape tokens", "get token prices", "check crypto prices", "track token data", "get market cap", or mentions CoinGecko or CoinMarketCap data. Automates token market data collection using agent-browser CLI.
From web3-agent-browsernpx claudepluginhub discountry/ritmex-marketplace --plugin web3-agent-browserThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Automate token market data collection from CoinGecko and CoinMarketCap using the agent-browser CLI.
agent-browser CLI installed and accessibleagent-browser --help to verify installationNavigate to CoinGecko:
agent-browser open https://www.coingecko.com/
Take snapshot to identify elements:
agent-browser snapshot -i
CoinGecko provides:
For the main token list, extract:
| Field | Description |
|---|---|
rank | Market cap ranking |
name | Token name |
symbol | Token symbol (BTC, ETH) |
price | Current price in USD |
change_24h | 24-hour price change % |
change_7d | 7-day price change % |
market_cap | Market capitalization |
volume_24h | 24-hour trading volume |
JavaScript extraction pattern:
const tokens = [];
document.querySelectorAll('table tbody tr').forEach(row => {
const cells = row.querySelectorAll('td');
if (cells.length > 5) {
tokens.push({
rank: cells[1]?.innerText,
name: cells[2]?.querySelector('a')?.innerText,
price: cells[4]?.innerText,
change_24h: cells[5]?.innerText,
market_cap: cells[8]?.innerText
});
}
});
return tokens;
Navigate to CoinMarketCap:
agent-browser open https://coinmarketcap.com/
Take snapshot:
agent-browser snapshot -i
CoinMarketCap provides:
Extract similar fields from CoinMarketCap table.
Note: CMC may have different CSS selectors. Use snapshot to identify correct refs.
Both platforms show trending/new tokens. Capture these separately:
CoinGecko Trending:
agent-browser open https://www.coingecko.com/en/discover
CoinMarketCap Trending:
agent-browser open https://coinmarketcap.com/trending-cryptocurrencies/
Extract:
Merge and deduplicate data from both sources.
Output format (JSON):
{
"scraped_at": "2025-01-26T12:00:00Z",
"sources": ["CoinGecko", "CoinMarketCap"],
"market_overview": {
"total_market_cap": "$3.2T",
"btc_dominance": "52.3%",
"fear_greed_index": 72
},
"top_tokens": [
{
"rank": 1,
"name": "Bitcoin",
"symbol": "BTC",
"price": "$104,500",
"change_24h": "+2.5%",
"change_7d": "-1.2%",
"market_cap": "$2.1T",
"volume_24h": "$45B"
}
],
"trending": [
{
"name": "Token Name",
"symbol": "TKN",
"price": "$0.45",
"change_24h": "+150%"
}
],
"new_listings": [
{
"name": "New Token",
"symbol": "NEW",
"listed_date": "2025-01-25",
"price": "$0.01"
}
]
}
Markdown format:
# Token Market Report - Jan 26, 2025
## Market Overview
| Metric | Value |
|--------|-------|
| Total Market Cap | $3.2T |
| BTC Dominance | 52.3% |
| Fear & Greed | 72 (Greed) |
## Top 10 Tokens
| Rank | Name | Price | 24h | 7d | Market Cap |
|------|------|-------|-----|-----|------------|
| 1 | Bitcoin (BTC) | $104,500 | +2.5% | -1.2% | $2.1T |
| 2 | Ethereum (ETH) | $3,200 | +1.8% | +3.5% | $380B |
## š„ Trending
1. **TokenA** (TKA) - $0.45 (+150%)
2. **TokenB** (TKB) - $1.20 (+85%)
## š New Listings
- **NewToken** (NEW) - Listed Jan 25 - $0.01
---
*Data from CoinGecko & CoinMarketCap*
Save files:
tokens-YYYY-MM-DD.mdtokens-YYYY-MM-DD.jsonIf telegram-notification MCP is configured:
Tool: mcp__telegram-notification__send_notification
Parameters:
message: "š Market Report - Jan 26\n\nš° BTC: $104,500 (+2.5%)\nš ETH: $3,200 (+1.8%)\n\nš„ Trending: TokenA +150%"
parse_mode: "Markdown"
To get data for a specific token:
# CoinGecko
agent-browser open https://www.coingecko.com/en/coins/bitcoin
# CoinMarketCap
agent-browser open https://coinmarketcap.com/currencies/bitcoin/
Extract detailed token info:
| Command | Purpose |
|---|---|
agent-browser open <url> | Navigate to page |
agent-browser snapshot -i | Get interactive elements |
agent-browser click @e1 | Click element |
agent-browser evaluate "js" | Execute JavaScript |
agent-browser screenshot | Capture page image |
For full token lists:
Identify pagination controls:
agent-browser snapshot -i
Click next page:
agent-browser click @e[next-button-ref]
Extract data from each page
Repeat until desired amount collected
Save reports to current directory or specified path:
./tokens-YYYY-MM-DD.{md,json}