feat: focus Work tools by task intent

This commit is contained in:
wuyang
2026-07-26 14:22:46 +08:00
parent ae5f940a5d
commit f2282c7e7d
3 changed files with 85 additions and 3 deletions
+3 -2
View File
@@ -92,7 +92,7 @@ TOOL_METADATA: dict[str, ToolMetadata] = {
),
"write_file": ToolMetadata(
"write_file",
"Write the complete UTF-8 contents of a workspace file.",
"Write complete UTF-8 file contents. Use actual line breaks between source lines, not literal \\\\n text.",
object_schema(
{
"path": {"type": "string", "maxLength": 4096},
@@ -115,7 +115,8 @@ TOOL_METADATA: dict[str, ToolMetadata] = {
),
"exec": ToolMetadata(
"exec",
"Run a shell command in the isolated workspace.",
"Run a complete non-interactive shell command. Name the script, pass -c code, or invoke a test; "
"bare python, node, or shells are rejected.",
object_schema(
{
"command": {"type": "string"},