docs(coding-agent): fix promptGuidelines examples to name tools explicitly (#3489)

promptGuidelines bullets are appended flat to the Guidelines section
with no tool name prefix. Using 'Use this tool when...' is ambiguous
because the LLM cannot tell which tool 'this' refers to. Updated docs
and examples to use explicit tool names instead.
This commit is contained in:
Aliou Diallo
2026-04-21 13:07:42 +02:00
committed by GitHub
parent b2a1997ea0
commit 01ec6e2e7f
2 changed files with 7 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ export default function dynamicToolsExtension(pi: ExtensionAPI) {
label,
description: `Echo a message with prefix: ${prefix}`,
promptSnippet: `Echo back user-provided text with ${prefix.trim()} prefix`,
promptGuidelines: ["Use this tool when the user asks for exact echo output."],
promptGuidelines: ["Use echo_session when the user asks for exact echo output."],
parameters: ECHO_PARAMS,
async execute(_toolCallId, params) {
return {