Regex Search
regex_searchSearch Obsidian note bodies using JavaScript regex to retrieve matching file, line, and excerpt.
Instructions
Search note bodies with a JavaScript regular expression and return matching file, line, and excerpt.
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": {
"pattern": "<pattern>"
},
"name": "regex_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Any of i, m, s, u (default i). | |
| limit | No | Max matching lines (default 50). | |
| folder | No | Optional vault-relative folder scope. | |
| pattern | Yes | JavaScript regular expression pattern. |