create_kb_from_urls
Adds up to 50 website URLs to an agent knowledge base by scraping pages and creating KB documents in per-URL or batch mode.
Instructions
PREFERRED for adding many website pages to an agent KB. Pass up to 50 URLs; the Convocore KB router scrapes them (scrapeContent=true). Do NOT web-fetch/scrape_url then paste content into create_kb_doc — that is slow and duplicates work. mode=per_url (default): one KB doc per URL. mode=batch: one API call with urls[]. For a whole site prefer create_kb_doc sourceType=sitemap. Scraping is async — poll list_kb_docs/get_kb_doc for status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | per_url (default) or batch (single source with all urls) | |
| name | No | batch: doc name. per_url: optional name prefix | |
| tags | No | ||
| urls | Yes | Page URLs to ingest via KB router (max 50) | |
| agentId | Yes | The agent ID | |
| metadata | No | ||
| refreshRate | No | Auto re-crawl (API: 3d | 7d | never). Default never. | |
| skipExisting | No | Skip URLs already on the agent KB (default true) | |
| scrapeContent | No | KB router scrape (default true) |