hpc_search_in_file
Search a file for a basic regex pattern on a SLURM cluster. Streams matches line by line, so you can safely inspect huge files and view surrounding context.
Instructions
grep a file for a pattern (basic regex). Streams, so safe for huge files.
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": {
"path": "<path>",
"pattern": "<pattern>"
},
"name": "hpc_search_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path on the cluster | |
| pattern | Yes | ||
| context_lines | No |