Search for a regex pattern across files in the agent’s sandbox
*.py).ok).pattern is a regex. Escape regex metacharacters if you want to match them literally.path and include for faster results on large sandboxes.API Key for authentication
Agent UUID
Request body for regex search across files in the agent sandbox.
Regular expression to search for.
"def main"
Directory or file path to search, relative to the sandbox root.
"src"
Optional filename glob to include (e.g. *.py).
"*.py"
Number of context lines to include before and after each match.
x >= 0Successful Response
Generic response wrapper returned by agent sandbox endpoints. Not every field is populated for every tool.
Result status of the sandbox operation.
"ok"
Standard output captured from the sandbox command. Present for bash.
Standard error captured from the sandbox command. Present for bash.
Process exit code returned by the sandbox. Present for bash.
File contents. Present for file_read.
File path affected by the operation. Present for file_write, file_edit, multi_edit, file_share.
Match results. Present for glob and grep.
Public CDN URL. Present for file_share.
Error message when the operation fails.