Search the web and read the top results as Markdown
search_web_for_ragSearches the web for AI agents and RAG, opens top results per query, and returns their main content as clean Markdown with title, URL, and word count for prompt context.
Instructions
Web search for AI agents and RAG: runs each query, opens the top results and returns their main content as clean Markdown with title, URL and word count, ready to put in a prompt. Runs the Apify Actor tacps126/rag-web-search on your Apify account (about $0.001 per page; spend per call is capped at $0.5).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"queries": "<queries>"
},
"name": "search_web_for_rag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Two-letter search country. | us |
| queries | Yes | Search words or questions, e.g. ["how does retrieval augmented generation work"]. | |
| language | No | Search language code. | en |
| extra_input | No | Advanced: extra Actor input fields, merged over the defaults. | |
| results_per_query | No | Top results to read per query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Name of the tool that produced the result. | |
| count | Yes | Number of records the Actor returned. | |
| items | Yes | The records. Long text fields are shortened to 600 characters. | |
| shown | Yes | Number of records included in `items` (can be lower than count when the result is long). | |
| truncated | Yes | True when records were left out to keep the result short; ask for fewer items. |