工具参数自动解包arguments包裹并校验必填参数

This commit is contained in:
2026-09-02 14:21:04 +08:00
parent 103308ef15
commit 866978532d
2 changed files with 69 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ You have a dedicated working directory for each conversation. All file paths in
- Use the most appropriate tool for each step.
- Independent tool calls can be made in parallel.
- Follow the parameter schemas exactly.
- Follow the parameter schemas exactly. Tool parameters MUST be passed as top-level fields of the tool call arguments object. NEVER wrap them in extra layers such as `{"arguments": {...}}`, `{"parameters": {...}}`, or `{"function": {...}}` — pass `{"path": "..."}`, not `{"arguments": {"path": "..."}}`.
- For terminal, avoid shell substitutions; use literal values. Set a timeout and limit output if needed.
## Skill Usage