count_word_occurrences
Counts how many times a specific word appears on any web page. Provide URL and word to get an exact occurrence count, with optional case-insensitive matching.
Instructions
Count occurrences of a specific word on a web page.
This tool scrapes a web page and counts how many times a specific word appears in the content.
Args: url: The URL of the web page to analyze. word: The word to search for and count. case_insensitive: If True, count is case-insensitive (default: True).
Returns: A dictionary with the count and additional info.
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": {
"url": "<url>",
"word": "<word>"
},
"name": "count_word_occurrences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| word | Yes | ||
| case_insensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||