glob
Find files on a remote machine by pattern, including recursive ** matches, with results sorted newest first and .gitignore rules honored.
Instructions
Find files on the remote machine by glob pattern (** supported); newest first, .gitignore honoured.
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": {
"pattern": "<pattern>"
},
"name": "glob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to search. Default: the workspace directory. | |
| fleet | No | Fleet name. Omit to use the default. | |
| context | No | Context name. Omit to use the default. | |
| pattern | Yes | Glob pattern, e.g. **/*.go. Results are sorted by modification time, newest first. | |
| workspace | No | Workspace id. Omit to use this session's workspace on the fleet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| mime | No | ||
| note | No | ||
| path | No | ||
| size | No | ||
| count | No | ||
| lines | No | ||
| where | Yes | ||
| sha256 | No | ||
| content | No | ||
| entries | No | ||
| new_file | No | ||
| warnings | No | ||
| truncated | No | ||
| workspace | Yes | ||
| next_offset | No | ||
| total_lines | No | ||
| omitted_bytes | No | ||
| written_bytes | No |