Added tool implementation for reading tools.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: tool_inspector
|
||||
desc: 只读查看本地工具的源码、Cargo.toml 和 spec 配置。在用 tool_manager 修改某工具前,先用本工具查看其当前实现,避免盲目覆盖丢失逻辑。低风险,无需审批
|
||||
type: stdio
|
||||
tool: tool_inspector
|
||||
path: /target/release/tool_inspector
|
||||
risk_level: low
|
||||
timeout_secs: 10
|
||||
params:
|
||||
- name: action
|
||||
required: true
|
||||
desc: 操作类型:list(列出所有工具及文件构成)、read_tool(读取某工具的全部 Cargo.toml/specs/src 源码)、read_file(读取工具目录下单个文件)
|
||||
- name: tool_name
|
||||
required: false
|
||||
desc: 工具名称(read_tool/read_file 必填),只允许字母、数字、下划线和短横线
|
||||
- name: file
|
||||
required: false
|
||||
desc: read_file 时的相对路径,如 src/main.rs、Cargo.toml、specs/weather.tool.yaml;必须是相对路径,禁止 .. 和 target 目录
|
||||
Reference in New Issue
Block a user