Extract With Regex
extract_with_regexApply a Python regular expression to a Wikipedia article's current wikitext to extract matching text for citation analysis.
Instructions
Apply a regular expression to an article's latest wikitext.
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": {
"article_name": "<article_name>",
"regexp": "<regexp>"
},
"name": "extract_with_regex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Wikipedia language code (default "en"). | en |
| regexp | Yes | Python regular expression (max 500 chars). | |
| date_limit | No | Upper date bound, ISO 8601 (default: now). | |
| article_name | Yes | Article title. |