grep_tmp
Search an agent's forwarded /tmp using the host's real grep binary via argv (no shell); select cwd or file path and get exit code, stdout, and stderr.
Instructions
Proxy a call to the host's real grep binary against an agent's forwarded /tmp. args is passed as an argv array with no shell. cwd selects a directory under tmp; path optionally appends a file (relative to cwd) to grep. Use relative paths, e.g. args=['-rn', 'pattern', '.'] or args=['-n', 'pattern'] with path='file.txt'. Returns exit code, stdout, and stderr.
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": {
"agent_id": "<agent_id>",
"args": "<args>"
},
"name": "grep_tmp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| args | Yes | ||
| path | No | ||
| agent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||