Skip to main content

vtcode_config/constants/
tools.rs

1// ============================================================
2// UNIFIED TOOLS (Primary Interface)
3// ============================================================
4/// Unified search & discovery tool (aliases: grep_file, list_files, etc.)
5pub const UNIFIED_SEARCH: &str = "unified_search";
6/// Unified shell execution & code execution tool (aliases: run_pty_cmd, execute_code, etc.)
7pub const UNIFIED_EXEC: &str = "unified_exec";
8/// Unified file operations tool (aliases: read_file, write_file, edit_file, etc.)
9pub const UNIFIED_FILE: &str = "unified_file";
10
11// ============================================================
12// TOOL IDS
13// ============================================================
14pub const THINK: &str = "think";
15pub const SEARCH_TOOLS: &str = "search_tools";
16pub const WEB_SEARCH: &str = "web_search";
17pub const FETCH_URL: &str = "fetch_url";
18pub const LIST: &str = "list";
19pub const GREP: &str = "grep";
20pub const FETCH: &str = "fetch";
21pub const EXEC_PTY_CMD: &str = "exec_pty_cmd";
22pub const SHELL: &str = "shell";
23pub const GREP_FILE: &str = "grep_file";
24pub const LIST_FILES: &str = "list_files";
25
26// ============================================================
27// SKILL MANAGEMENT TOOLS (Progressive Disclosure)
28// ============================================================
29/// List all available skills (local and dormant system utilities)
30pub const LIST_SKILLS: &str = "list_skills";
31/// Load a skill's instructions and activate its tools
32pub const LOAD_SKILL: &str = "load_skill";
33/// Load resources from a skill (scripts, templates, docs)
34pub const LOAD_SKILL_RESOURCE: &str = "load_skill_resource";
35
36// ============================================================
37// LEGACY EXECUTION ALIASES (use unified_exec instead)
38// ============================================================
39pub const RUN_PTY_CMD: &str = "run_pty_cmd";
40pub const CREATE_PTY_SESSION: &str = "create_pty_session";
41pub const LIST_PTY_SESSIONS: &str = "list_pty_sessions";
42pub const CLOSE_PTY_SESSION: &str = "close_pty_session";
43pub const SEND_PTY_INPUT: &str = "send_pty_input";
44pub const READ_PTY_SESSION: &str = "read_pty_session";
45pub const RESIZE_PTY_SESSION: &str = "resize_pty_session";
46pub const EXECUTE_CODE: &str = "execute_code";
47
48// ============================================================
49// LEGACY FILE OPERATION ALIASES (use unified_file instead)
50// ============================================================
51pub const READ_FILE: &str = "read_file";
52pub const WRITE_FILE: &str = "write_file";
53pub const EDIT_FILE: &str = "edit_file";
54pub const DELETE_FILE: &str = "delete_file";
55pub const CREATE_FILE: &str = "create_file";
56pub const APPLY_PATCH: &str = "apply_patch";
57pub const SEARCH_REPLACE: &str = "search_replace";
58pub const FILE_OP: &str = "file_op";
59pub const MOVE_FILE: &str = "move_file";
60pub const COPY_FILE: &str = "copy_file";
61
62// ============================================================
63// ERROR & DIAGNOSTICS
64// ============================================================
65pub const GET_ERRORS: &str = "get_errors";
66
67// ============================================================
68// HUMAN-IN-THE-LOOP (HITL)
69// ============================================================
70/// Canonical HITL tool name for structured user input.
71pub const REQUEST_USER_INPUT: &str = "request_user_input";
72/// Legacy alias routed to `request_user_input`.
73pub const ASK_QUESTIONS: &str = "ask_questions";
74/// Legacy alias routed to `request_user_input` (deprecated tabbed shape).
75pub const ASK_USER_QUESTION: &str = "ask_user_question";
76
77// ============================================================
78// PLAN MODE
79// ============================================================
80/// Enter plan mode - enables read-only tools and planning workflow.
81pub const ENTER_PLAN_MODE: &str = "enter_plan_mode";
82/// Exit plan mode - triggers confirmation modal before execution.
83pub const EXIT_PLAN_MODE: &str = "exit_plan_mode";
84/// Task tracker / plan manager - tracks checklist progress during complex tasks.
85pub const TASK_TRACKER: &str = "task_tracker";
86/// Plan-mode scoped task tracker persisted under `.vtcode/plans/`.
87pub const PLAN_TASK_TRACKER: &str = "plan_task_tracker";
88
89// Special wildcard for full access
90pub const WILDCARD_ALL: &str = "*";