Loading...
Loading...
Baidu Search Tool. Use bdsearch CLI to search web content via Baidu AI Search API. Trigger scenarios: Users request Baidu search, news lookup, information retrieval, tutorial search, topic research, obtaining public web information, or needing structured search results.
npx skill4agent add lyhue1991/bdsearch bdsearchbdsearchbdsearch "关键词" --format json --count 10bdsearch "人工智能" --count 10 --format json # Search keywords, return top 10 results in JSON format
bdsearch "最新新闻" --freshness pd --format json # Search news from the latest day in JSON format
bdsearch "科技新闻" --freshness "2025-09-01to2025-09-08" --format markdown # Search news within the specified date range in Markdown formatbdsearch1. Check Installation → 2. Check Authentication Configurationcommand -v bdsearchnpm install -g @lyhue1991/bdsearchbdsearch config --showprintenv BAIDU_API_KEYbdsearch config --api-key "你的APIKey"bdsearch config --api-key "你的APIKey"
bdsearch config --default-format json --default-count 10 --default-freshness pdbdsearch config --showbdsearch config --resetbdsearch "AI 新闻" --freshness pd --format json
bdsearch "大模型进展" --freshness pw --format jsonbdsearch "Node.js" --format markdown
bdsearch "Python" --count 10 --format table| Parameter | Description |
|---|---|
| Search keyword, required |
| Number of returned results, range 1-50, default 10 |
| Time filtering, supports |
| Output format, supports |
--format jsonBAIDU_API_KEYbdsearch config --api-keyurl--freshness# View help
bdsearch --help
bdsearch config --help
# View configuration
bdsearch config --show
# Set API Key
bdsearch config --api-key "你的APIKey"
# Basic search
bdsearch "人工智能" --format json
# Specify number of results
bdsearch "TypeScript 教程" --count 5 --format json
# Query latest content
bdsearch "最新新闻" --freshness pd --format json
# Custom date range
bdsearch "科技新闻" --freshness "2025-09-01to2025-09-08" --format json
# Reader-friendly output
bdsearch "Node.js" --format markdown
bdsearch "Python" --format table