ListFiles
class ListFiles extends FilesystemTool
Traits
Properties
| protected Approval|bool|null | $approvalRequirement | from InteractsWithApprovals |
Methods
Indicate that the tool requires approval before execution.
Indicate that the tool may execute without approval.
Determine whether the tool should request approval for the given request.
Determine whether the given path points to a file, not a directory.
Get the description of the tool's purpose.
Details
in
InteractsWithApprovals at line 17
InteractsWithApprovals
requireApproval(string|null $reason = null)
Indicate that the tool requires approval before execution.
in
InteractsWithApprovals at line 27
InteractsWithApprovals
withoutApproval()
Indicate that the tool may execute without approval.
in
InteractsWithApprovals at line 37
Approval|null
shouldRequestApproval(Request $request)
Determine whether the tool should request approval for the given request.
in
InteractsWithApprovals at line 51
protected Approval|bool
needsApproval(Request $request)
Determine whether the tool needs approval for the given request.
in
FilesystemTool at line 23
__construct(Filesystem|string|null $disk = null)
Create a filesystem tool for the given disk.
in
FilesystemTool at line 30
protected bool
fileExists(Filesystem $disk, string $path)
Determine whether the given path points to a file, not a directory.
in
FilesystemTool at line 38
protected Filesystem
disk()
Resolve the filesystem disk the tool operates on.
at line 17
Stringable|string
description()
Get the description of the tool's purpose.
at line 25
Stringable|string
handle(Request $request)
Execute the tool.
at line 45
array
schema(JsonSchema $schema)
Get the tool's schema definition.