grep
Find lines matching a text pattern in workspace files. Use options like path, glob, case-insensitivity, and context to pinpoint relevant content.
Instructions
Search file content using Pi and return matching lines.
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": {
"workspace_id": "<workspace_id>",
"pattern": "<pattern>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | ||
| path | No | Absolute path or path relative to the workspace. Home is a starting directory, not a sandbox. | |
| limit | No | ||
| context | No | ||
| literal | No | ||
| pattern | Yes | ||
| ignoreCase | No | ||
| workspace_id | Yes |