11import z from 'zod/v4'
22
3- import {
4- $getNativeToolCallExampleString ,
5- jsonToolResultSchema ,
6- } from '../utils'
3+ import { $getNativeToolCallExampleString , jsonToolResultSchema } from '../utils'
74
85import type { $ToolParams } from '../../constants'
96
@@ -13,9 +10,7 @@ const endsAgentStep = false
1310const followupSchema = z . object ( {
1411 prompt : z
1512 . string ( )
16- . describe (
17- 'The full prompt text to send as a user message when clicked' ,
18- ) ,
13+ . describe ( 'The full prompt text to send as a user message when clicked' ) ,
1914 label : z
2015 . string ( )
2116 . optional ( )
@@ -36,7 +31,7 @@ const inputSchema = z
3631 ) ,
3732 } )
3833 . describe (
39- ' Suggest clickable followup prompts to the user. Each followup becomes a card the user can click to send that prompt.' ,
34+ ` Suggest clickable followup prompts to the user. Each followup becomes a card the user can click to send that prompt.` ,
4035 )
4136
4237const outputSchema = z . object ( {
@@ -47,10 +42,15 @@ const description = `
4742Suggest clickable followup prompts to the user. When the user clicks a suggestion, it sends that prompt as a new user message.
4843
4944Use this tool after completing a task to suggest what the user might want to do next. Good suggestions include:
50- - "Continue with the next step" - when there are more steps in a plan
45+ - Alternatives to the latest implementation like "Cache the data to local storage instead"
46+ - Related features like "Add a hover card to show the data from the state"
5147- Cleanup opportunities like "Refactor app.ts into multiple files"
5248- Testing suggestions like "Add unit tests for this change"
53- - Related features like "Add a hover card to show the data from the state"
49+ - "Continue with the next step" - when there are more steps in a plan
50+
51+ Don't include suggestions like:
52+ - "Commit these changes"
53+ - "Test the changes" without saying how you would test the changes (unit test, script, or something else?)
5454
5555Aim for around 3 suggestions. The suggestions persist and remain clickable, with clicked ones visually updated to show they were used.
5656
0 commit comments