Skip to content

Commit 224c6b4

Browse files
authored
Merge pull request #4 from apify/docs/readme
2 parents eded7a9 + c4b9b10 commit 224c6b4

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ The RAG Web Browser Actor allows an AI assistant to:
1818

1919
### Tools
2020

21-
The server implements a web browser tool:
22-
- `web-browser`: query Google Search, scrape the top N URLs from the results, and returns their cleaned content as Markdown.
23-
- Parameters:
24-
- `query`: Search term or URL
25-
- `max_results`: Maximum number of search results to scrape
21+
- **search**: Query Google Search, scrape the top N URLs from the results, and returns their cleaned content as Markdown.
22+
- Arguments:
23+
- `query` (string, required): Search term or URL
24+
- `max_results` (number, optional): Maximum number of search results to scrape (default: 1)
2625

27-
### Resources and Prompts
26+
### Prompts
27+
28+
- *search*: Search phrase or a URL at Google and return crawled web pages as text or Markdown
29+
- Arguments:
30+
- `query` (string, required): Search term or URL
31+
- `max_results` (number, optional): Maximum number of search results to scrape (default: 1)
32+
33+
### Resources
2834

2935
The server does not provide any resources and prompts.
3036

@@ -53,7 +59,7 @@ Configure Claude Desktop to recognize the MCP server.
5359
"mcp-server-rag-web-browser": {
5460
"command": "npx",
5561
"args": [
56-
"/path/to/mcp-server-rag-web-browser/build/index.js"
62+
"/path/to/mcp-server-rag-web-browser/build/index.js",
5763
]
5864
"env": {
5965
"APIFY-API-TOKEN": "your-apify-api-token"
@@ -102,7 +108,7 @@ To test the server locally, you can use `example_client`:
102108
node build/example_client.js
103109
```
104110

105-
The script will start the MCP server, fetch available tools, and then call the `web-browser` tool with a query.
111+
The script will start the MCP server, fetch available tools, and then call the `search` tool with a query.
106112

107113
### Debugging
108114

src/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const PROMPTS = [
4646
},
4747
{
4848
name: 'maxResults',
49-
description: 'The maximum number of top organic Google Search results whose web pages will be extracted',
50-
description: 'The maximum number of top organic Google Search results whose web pages will be extracted (default: 1)',
49+
description: 'The maximum number of top organic Google Search results whose web pages' +
50+
' will be extracted (default: 1)',
5151
required: false,
5252
},
5353
],

0 commit comments

Comments
 (0)