Agent Workspace
Grep
Search for a regex pattern across files in the agent’s workspace
POST
Workspace: Grep
Search for a regex pattern across files in the per-agent workspace, with optional file-type filtering and surrounding context lines.
Path Parameters
Request Body
Response
One entry per matching line, with
file, line, content and context (the line with its surrounding lines).Example Request
Notes
patternis a regex. Escape regex metacharacters if you want to match them literally.- Narrow the search with
pathandincludefor faster results on large workspaces.
See Also
Body
application/json
Response
Successful Response

