Nhà phát triển
Kết nối máy khách AI để tách nền ngay trên thiết bị hoặc chia sẻ liên kết công cụ có sẵn thông số.
Thử liên kết công cụ
MCP
Thêm imgsite vào cấu hình mcpServers của máy khách MCP rồi khởi động lại. Hãy yêu cầu xóa nền photo.webp và lưu thành photo-cutout.png.
mcpServers · stdio · Node.js ≥ 22.18
{
"mcpServers": {
"imgsite": {
"command": "npx",
"args": [
"--yes",
"--package=https://picmiso.com/integrations/imgsite-links-0.1.0.tgz",
"imgsite-mcp"
],
"env": {
"IMGSITE_LOCALE": "vi",
"IMGSITE_IMAGE_DIR": "~/Pictures/imgsite"
}
}
}
}Gọi remove_background để nhận PNG trong suốt. Khi dùng đường dẫn tệp, đặt IMGSITE_IMAGE_DIR thành thư mục có sẵn mà bạn muốn chia sẻ. Máy khách cũng có thể gửi imageBase64 và nhận PNG ngay trong phản hồi. Chế độ nhanh chạy ngoại tuyến sau khi cài đặt. Chế độ chi tiết tải thêm 96,4 MiB lần đầu.
remove_background
{
"inputFile": "photo.webp",
"outputFile": "photo-cutout.png",
"mode": "subject",
"quality": "fine"
}create_image_tool_linkClaude Desktop CLI
Chạy lệnh này để lấy liên kết chia sẻ. Dùng --help để xem danh sách công cụ và ngôn ngữ.
Terminal · Node.js ≥ 22.18
npx --yes --package="https://picmiso.com/integrations/imgsite-links-0.1.0.tgz" imgsite-link compress-image --locale vi --maxEdge 800 --maxKB 200JavaScript SDK
Cài gói và gọi createToolLink từ một mô-đun JavaScript. Bạn có thể dùng URL trả về trong tin nhắn hoặc nút bấm.
npm · Node.js ≥ 22.18
npm install "https://picmiso.com/integrations/imgsite-links-0.1.0.tgz"JavaScript
import { createToolLink } from "imgsite-links";
const url = createToolLink("compress-image", {
locale: "vi",
maxEdge: 800,
maxKB: 200,
});