Search for files by name or content within an agent’s workspace.
filename, content, or both| Field | Type | Description |
|---|---|---|
results | array | List of matching files |
results[].path | string | File path |
results[].type | string | Entry type (file or directory) |
results[].size | number | File size in bytes |
results[].matches | array | Matching content lines (content search only) |
total | number | Total number of results |
| Code | Description |
|---|---|
200 | Search completed successfully |
400 | Invalid request body or pattern |
401 | Invalid authentication |
403 | Access denied |
404 | Agent not found |