docs(exec): document pty for TTY-only CLIs (gog)

This commit is contained in:
saurav470
2026-02-17 01:40:07 +05:30
committed by Peter Steinberger
parent f275611862
commit d2dd282034
3 changed files with 16 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ export const execSchema = Type.Object({
pty: Type.Optional(
Type.Boolean({
description:
"Run in a pseudo-terminal (PTY) when available (TTY-required CLIs, coding agents)",
"Run in a pseudo-terminal (PTY) when available (TTY-required CLIs e.g. gog, coding agents)",
}),
),
elevated: Type.Optional(

View File

@@ -242,7 +242,7 @@ export function createExecTool(
name: "exec",
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).",
"Execute shell commands with background continuation. Use yieldMs/background to continue later via process tool. Use pty=true for TTY-required commands (e.g. gog, terminal UIs, coding agents).",
parameters: execSchema,
execute: async (_toolCallId, args, signal, onUpdate) => {
const params = args as {