update system prompt, we use this cline prompt system
This commit is contained in:
18
src/core/prompts/tools/switch-mode.ts
Normal file
18
src/core/prompts/tools/switch-mode.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export function getSwitchModeDescription(): string {
|
||||
return `## switch_mode
|
||||
Description: Request to switch to a different mode. This tool allows modes to request switching to another mode when needed, such as switching to Write mode edits to files. The user must approve the mode switch.
|
||||
Parameters:
|
||||
- mode_slug: (required) The slug of the mode to switch to (e.g., "write", "ask",)
|
||||
- reason: (optional) The reason for switching modes
|
||||
Usage:
|
||||
<switch_mode>
|
||||
<mode_slug>Mode slug here</mode_slug>
|
||||
<reason>Reason for switching here</reason>
|
||||
</switch_mode>
|
||||
|
||||
Example: Requesting to switch to write mode
|
||||
<switch_mode>
|
||||
<mode_slug>write</mode_slug>
|
||||
<reason>Need to edit files</reason>
|
||||
</switch_mode>`
|
||||
}
|
||||
Reference in New Issue
Block a user