Skip to main content

PTY_SHELL_RESIZE_TOOL

Constant PTY_SHELL_RESIZE_TOOL 

Source
pub(crate) const PTY_SHELL_RESIZE_TOOL: &str = r#"{
  "name": "PtyShellResize",
  "description": "Resize a PtyShell()'s terminal. Some interactive programs render differently or wrap badly at the default geometry (25 rows x 200 cols).",
  "inputSchema": {
    "type": "object",
    "properties": {
      "shell_id": { "type": "string", "description": "The shell_id returned by a prior PtyShell() call" },
      "rows":     { "type": "integer", "description": "New row count" },
      "cols":     { "type": "integer", "description": "New column count" }
    },
    "required": ["shell_id", "rows", "cols"]
  }
}"#;