ws_grep
Search a workspace file (or a per-clip / per-link directory such as job/<job_id>/words) with a regex; returns path:line:text for each hit. context = lines shown around each hit (max 5).
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>",
"path": "<path>"
},
"name": "ws_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| context | No | ||
| pattern | Yes | ||
| ignore_case | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |