Skip to content

Commit ce48174

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): Write 工具错误提示缺乏引导性,导致模型无法正确转换数据类型 (issue_mnrlm3si_7cqccf)
1 parent d1c7548 commit ce48174

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/source/skills/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ alwaysApply: true
3939

4040
- If the same path fails 2-3 times, stop retrying and reroute. Check platform skill, auth domain, runtime, and permission model before editing more code.
4141
- Always specify `EnvId` explicitly in code, configuration, and command examples when initializing CloudBase clients or manager operations. Do not rely on the current CLI-selected environment or implicit defaults.
42+
- When saving MCP or tool results to a local file with a generic file-writing tool, pass text, not raw objects. For JSON output files, serialize first with `JSON.stringify(result, null, 2)` and write that string as the file content.
43+
- If the file-writing tool reports that a field such as `content` expected a string but received an object, do not retry with the same raw object. Serialize the object first, then retry once with the serialized text.
4244

4345
### Do NOT use this as
4446

0 commit comments

Comments
 (0)