feat(tools): enhance CLI tool descriptions and add remote handling option

- Updated `cleanupTool` description to include detailed usage and arguments.
- Added optional `noRemote` flag to `cleanupTool` for local‑only tag deletion.
- Adjusted remote handling logic to respect the new `noRemote` flag.
- Expanded `closeTool` description with clear argument documentation.
- Expanded `openTool` description with detailed argument documentation.
This commit is contained in:
2026-03-23 10:24:49 +05:30
parent c6d6c889d8
commit 46d81b4162
3 changed files with 23 additions and 11 deletions
+5 -1
View File
@@ -9,7 +9,11 @@ import { getBinaryName } from "../core/utils";
* Returns instructions for attaching to and cleaning up the session.
*/
export const openTool = tool({
description: "Launch multiple OpenCode models in tmux",
description: `Launch multiple OpenCode models in tmux.
Arguments:
- \`sessionName\` (string, required): tmux session name to create.
- \`models\` (array of strings, required): one or more OpenCode model IDs to launch.`,
args: {
sessionName: tool.schema
.string()