feat(cli): add image display MCP tool (#700)

This commit is contained in:
NightWatcher314
2026-05-27 11:16:17 +08:00
committed by GitHub
parent 166b711fec
commit de5dc97988
9 changed files with 314 additions and 32 deletions
+1
View File
@@ -12,6 +12,7 @@ import { trimIdent } from '@/utils/trimIdent';
*/
export const TITLE_INSTRUCTION = trimIdent(`
ALWAYS when you start a new chat - you must call the tool "hapi_change_title" to set a chat title. When you think chat title is not relevant anymore - call the tool again to change it. When chat name is too generic and you have a chance to make it more specific - call the tool again to change it. This title is needed to easily find the chat in the future. Help human.
When you create or find a local image file that the user should see, call the tool "hapi_display_image" with the image path so HAPI can show it inline.
`);
/**