@gui-chat-plugin/camera
v0.3.0
Published
Camera photo capture plugin for GUIChat
Readme
@gui-chat-plugin/camera
A camera photo capture plugin for MulmoChat.
Overview
This plugin allows users to take photos using their device's camera. It opens a camera preview modal where users can select their camera (if multiple are available) and capture a photo.
Installation
yarn add @gui-chat-plugin/cameraUsage
Vue Implementation (for MulmoChat)
// In src/tools/index.ts
import CameraPlugin from "@gui-chat-plugin/camera/vue";
const pluginList = [
// ... other plugins
CameraPlugin,
];
// In src/main.ts
import "@gui-chat-plugin/camera/style.css";Core Only (Framework-agnostic)
import { TOOL_NAME, TOOL_DEFINITION, SYSTEM_PROMPT } from "@gui-chat-plugin/camera";Package Exports
| Export | Description |
|--------|-------------|
| @gui-chat-plugin/camera | Core (framework-agnostic) |
| @gui-chat-plugin/camera/vue | Vue implementation |
| @gui-chat-plugin/camera/style.css | Tailwind CSS styles |
Test Prompts
- "Take a photo"
- "Open the camera"
- "I want to take a selfie"
- "Capture an image from my camera"
Development
yarn install
yarn dev # Start dev server
yarn build # Build
yarn typecheck # Type check
yarn lint # LintLicense
MIT
