@gui-chat-plugin/scroll-to-anchor
v0.1.1
Published
Scroll to anchor plugin for GUIChat
Readme
@gui-chat-plugin/scroll-to-anchor
A scroll-to-anchor plugin for MulmoChat.
Overview
This plugin allows the AI to scroll the view to a specific tool result by its anchor ID. Useful for navigating between multiple results in a conversation.
Installation
yarn add @gui-chat-plugin/scroll-to-anchorUsage
Vue Implementation (for MulmoChat)
// In src/tools/index.ts
import ScrollToAnchorPlugin from "@gui-chat-plugin/scroll-to-anchor/vue";
const pluginList = [
// ... other plugins
ScrollToAnchorPlugin,
];
// In src/main.ts
import "@gui-chat-plugin/scroll-to-anchor/style.css";Core Only (Framework-agnostic)
import { pluginCore, TOOL_NAME } from "@gui-chat-plugin/scroll-to-anchor";Package Exports
| Export | Description |
|--------|-------------|
| @gui-chat-plugin/scroll-to-anchor | Core (framework-agnostic) |
| @gui-chat-plugin/scroll-to-anchor/vue | Vue implementation |
| @gui-chat-plugin/scroll-to-anchor/style.css | Tailwind CSS styles |
Test Prompts
- "Show me the previous image" (after generating multiple images)
- "Go back to the first result"
- "Scroll to the quiz"
Development
yarn install
yarn dev # Start dev server
yarn build # Build
yarn typecheck # Type check
yarn lint # LintLicense
MIT
