md_grep
Returns every line of a Markdown field containing a fragment, with line numbers and surrounding lines ("12:line" - a match, "11-line" - context, groups separated by --), plus { total, truncated, sha }.
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": {
"entity": "<entity>",
"field": "<field>",
"query": "<query>"
},
"name": "md_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ID | No | Entity ID; a task or feature can also be addressed by key. | |
| key | No | Task number or feature key (#F12) when the ID is unknown. | |
| field | Yes | spec; result for a task; notes for a version. | |
| query | Yes | A literal fragment; case-insensitive by default. | |
| entity | Yes | task (a task or bug), feature, product or version. | |
| context | No | Lines around each match, 2 by default. | |
| caseSensitive | No | Case-sensitive search. |