Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

feat(computer-use): expose max_elements and max_depth in get_window_state schema (#3163)

Battleplusa7de989fefac
diff --git a/packages/lizi-mcps/src/computer/tools.ts b/packages/lizi-mcps/src/computer/tools.ts
index 40ebfbe605..677856cce9 100644
--- a/packages/lizi-mcps/src/computer/tools.ts
+++ b/packages/lizi-mcps/src/computer/tools.ts
@@ -88,6 +88,8 @@ export const COMPUTER_TOOLS: readonly ComputerToolDef[] = [
query: z.string().optional(),
screenshot_out_file: z.string().optional(),
session: z.string().optional(),
+ max_elements: z.number().int().positive().optional().describe("Maximum number of accessibility tree elements to return. Use to limit context size for complex windows like Chrome."),
+ max_depth: z.number().int().positive().optional().describe("Maximum depth of the accessibility tree to traverse. Use to limit tree depth for complex windows."),
},
},
{