made suggested changes
This commit is contained in:
parent
aa14f6a975
commit
b57101b80d
@ -828,16 +828,15 @@ export function createExecTool(
|
||||
label: "exec",
|
||||
description:
|
||||
"Execute shell commands with background continuation. Use yieldMs/background to continue later via process tool. Use pty=true for TTY-required commands (terminal UIs, coding agents).",
|
||||
parameters: {
|
||||
...execSchema,
|
||||
properties: {
|
||||
...execSchema.properties,
|
||||
host: {
|
||||
...execSchema.properties.host,
|
||||
parameters: Type.Object({
|
||||
...execSchema.properties,
|
||||
host: Type.Optional(
|
||||
Type.String({
|
||||
description: "Exec host (sandbox|gateway|node).",
|
||||
default: defaults?.host ?? "sandbox",
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
),
|
||||
}),
|
||||
execute: async (_toolCallId, args, signal, onUpdate) => {
|
||||
const params = args as {
|
||||
command: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user