fix: TodoWriteTool标记为readOnly - 内存操作无需权限确认
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,11 @@ public class TodoWriteTool implements Tool {
|
|||||||
return "TodoWrite";
|
return "TodoWrite";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isReadOnly() {
|
||||||
|
return true; // 仅操作内存中的 todo 列表,无文件系统副作用
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description() {
|
public String description() {
|
||||||
return """
|
return """
|
||||||
|
|||||||
Reference in New Issue
Block a user