feat(core) Add login to shell_command tool (#6846)

## Summary
Adds the `login` parameter to the `shell_command` tool - optional,
defaults to true.

## Testing
- [x] Tested locally
This commit is contained in:
Dylan Hurd
2025-12-05 11:03:25 -08:00
committed by GitHub
parent d08efb1743
commit a8cbbdbc6e
8 changed files with 288 additions and 2 deletions

View File

@@ -331,6 +331,15 @@ fn create_shell_command_tool() -> ToolSpec {
description: Some("The working directory to execute the command in".to_string()),
},
);
properties.insert(
"login".to_string(),
JsonSchema::Boolean {
description: Some(
"Whether to run the shell with login shell semantics. Defaults to true."
.to_string(),
),
},
);
properties.insert(
"timeout_ms".to_string(),
JsonSchema::Number {