glrs
github
ci
npm
Preparing search index...
Extension API
ToolSpec
Type Alias ToolSpec<Schema>
type
ToolSpec
<
Schema
extends
z.ZodType
=
z.ZodType
>
=
{
description
:
string
;
execute
:
(
input
:
z.infer
<
Schema
>
,
signal
:
AbortSignal
|
undefined
,
)
=>
|
string
|
{
content
:
string
;
data
?:
unknown
}
|
Promise
<
string
|
{
content
:
string
;
data
?:
unknown
}
>
;
input
:
Schema
;
name
:
string
;
renderCall
?:
(
input
:
z.infer
<
Schema
>
)
=>
Line
[]
;
renderResult
?:
(
result
:
string
,
ok
:
boolean
)
=>
Line
[]
;
terminate
?:
boolean
;
}
Type Parameters
Schema
extends
z.ZodType
=
z.ZodType
Index
Properties
description
execute
input
name
render
Call?
render
Result?
terminate?
Properties
description
description
:
string
execute
execute
:
(
input
:
z.infer
<
Schema
>
,
signal
:
AbortSignal
|
undefined
,
)
=>
|
string
|
{
content
:
string
;
data
?:
unknown
}
|
Promise
<
string
|
{
content
:
string
;
data
?:
unknown
}
>
input
input
:
Schema
name
name
:
string
Optional
render
Call
renderCall
?:
(
input
:
z.infer
<
Schema
>
)
=>
Line
[]
Optional
render
Result
renderResult
?:
(
result
:
string
,
ok
:
boolean
)
=>
Line
[]
Optional
terminate
terminate
?:
boolean
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
description
execute
input
name
render
Call
render
Result
terminate
github
ci
npm
glrs
Loading...