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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| word | Yes | ||
| case_insensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||