apollo-code / tools/src / ReadTool
Class: ReadTool
Implements
Tool<{limit?:number;offset?:number;path:string; }>
Constructors
Constructor
new ReadTool():
ReadTool
Returns
ReadTool
Properties
description
readonlydescription:"Read a UTF-8 file"='Read a UTF-8 file'
Implementation of
inputSchema
readonlyinputSchema:never
Implementation of
name
readonlyname:"Read"='Read'
Implementation of
parallelSafe
readonlyparallelSafe:true=true
Implementation of
readonly
readonlyreadonly:true=true
Implementation of
Methods
invoke()
invoke(
input,ctx):Promise<ToolResult>
Parameters
input
limit?
number
offset?
number
path
string
ctx
Returns
Promise<ToolResult>
Implementation of
permissionSpec()
permissionSpec(
input):PermissionSpec
Parameters
input
path
string