mediawiki_search_in_page
Search within a specific MediaWiki page for text or patterns, returning matches with context lines. Use when you need to find content on a known page rather than searching across the entire wiki.
Instructions
Search WITHIN a known page (not across wiki).
USE WHEN: User says "find X on page Y", "does page Y mention X", "search for X in the Configuration page".
NOT FOR: Finding which page contains info (use mediawiki_search instead).
PARAMETERS:
title: Page name (required)
query: Text to find (required)
use_regex: Enable regex matching (optional)
context_lines: Lines of context around matches (default 2)
RETURNS: Matches with line numbers and surrounding context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Page title to search in | |
| query | Yes | Text to search for | |
| use_regex | No | Treat query as a Go RE2 regex. Characters like . [ ] * + ? ( ) have special meaning; escape with backslash for literal match. Max 500 chars. | |
| context_lines | No | Lines of context around matches (default 2) |