feat: add workdir to unified_exec (#6466)

This commit is contained in:
jif-oai
2025-11-10 19:53:36 +00:00
committed by GitHub
parent 980886498c
commit f01f2ec9ee
5 changed files with 123 additions and 7 deletions

View File

@@ -138,6 +138,15 @@ fn create_exec_command_tool() -> ToolSpec {
description: Some("Shell command to execute.".to_string()),
},
);
properties.insert(
"workdir".to_string(),
JsonSchema::String {
description: Some(
"Optional working directory to run the command in; defaults to the turn cwd."
.to_string(),
),
},
);
properties.insert(
"shell".to_string(),
JsonSchema::String {