Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.ObjectSyntax
Summary
Represents the response payload returned by the Claude Code Glob tool after searching for files matching a pattern.Remarks
The Glob tool performs fast file pattern matching across codebases of any size. It supports standard glob patterns like"**/*.js" or "src/**/*.ts".
This response is received in the GlobPostToolUsePayload
when the tool_name is “Glob”.
Results are sorted by modification time (most recently modified first), making it
easy to find recently changed files matching a pattern.
Example JSON payload:
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
DurationMs
Gets or sets the duration of the glob operation in milliseconds.Syntax
Property Value
Type:int
Remarks
This indicates how long the file system search took to complete. Large codebases or complex patterns may take longer. The Glob tool is optimized for performance and typically completes quickly even on large codebases.Filenames
Gets or sets the list of absolute file paths matching the glob pattern.Syntax
Property Value
Type:System.Collections.Generic.List<string>
Remarks
All paths are absolute and sorted by modification time, with the most recently modified files appearing first in the list. On Windows, paths will use backslash separators. The paths can be used directly with other tools like ReadToolInput to read the matched files. If GlobToolResponse.Truncated istrue, not all matching files are included
in this list due to result limits.
NumFiles
Gets or sets the number of files found matching the pattern.Syntax
Property Value
Type:int
Remarks
This is the count of files in GlobToolResponse.Filenames. If GlobToolResponse.Truncated istrue, this represents only the number of files returned, not the total
number of matches.
A value of 0 indicates no files matched the specified pattern in the search directory.
Truncated
Gets or sets a value indicating whether the results were truncated due to exceeding the maximum result limit.Syntax
Property Value
Type:bool
Remarks
Whentrue, more files matched the pattern than could be returned.
Consider using a more specific pattern to narrow down the results, or use
the GlobToolInput.Path parameter to search a more specific directory.
When results are truncated, the returned files are still sorted by modification
time, so the most recently modified matches are included.
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?