Scroll to anchor plugin for GUIChat
npm install @gui-chat-plugin/scroll-to-anchor
A scroll-to-anchor plugin for MulmoChat.
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.
``bash`
yarn add @gui-chat-plugin/scroll-to-anchor
`typescript
// 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";
`
`typescript`
import { pluginCore, TOOL_NAME } from "@gui-chat-plugin/scroll-to-anchor";
| 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 |
1. "Show me the previous image" (after generating multiple images)
2. "Go back to the first result"
3. "Scroll to the quiz"
`bash``
yarn install
yarn dev # Start dev server
yarn build # Build
yarn typecheck # Type check
yarn lint # Lint
MIT