search_tables
Find rows in HTML/Markdown tables by substring or regex, optionally scoped to a table or column, and get row indices plus version hashes to enable precise follow-up edits.
Instructions
Search for rows matching a value across one or all tables in a file.
Returns matching rows with table index, row index, and version hash so you can immediately follow up with a write tool. Prefer this over grep for table data — it understands column structure and handles HTML tables.
Two search modes (regex overrides pattern if both given):
pattern: case-insensitive substring match (simple, no escaping needed)
regex: full regex via re.search (e.g.
D 1\.\d+for sub-items)
If neither pattern nor regex is provided, returns all rows.
Args: file_path: Absolute path to the Markdown file. pattern: Case-insensitive substring to match in cell values. regex: Regular expression to match in cell values (overrides pattern). table_index: Search a specific table (0-based), or -1 for all tables. column: Restrict search to a column (letter, name, or composite). Empty string searches all columns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | ||
| column | No | ||
| pattern | No | ||
| file_path | Yes | ||
| table_index | No |