19 lines
694 B
TypeScript
19 lines
694 B
TypeScript
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>`
|
|
}
|