Install
openclaw skills install @liyuix/dianju-ofd-toolsAn OFD document processing tool that converts PDF/OFD files, converts OFD to images, and supports multiple document formats via the ofd365.com API.
openclaw skills install @liyuix/dianju-ofd-toolsA file conversion MCP server powered by the ofd365.com API. Supports PDF, OFD, Word, Excel, PPT, images and more.
# Install globally
npm install -g dianju-ofd-tools
# Configure API Key (get your key from ofd365.com)
export API_KEY=dj_live_your_api_key_here
export API_URL=https://ofd365.com/admin-api
# CLI mode
ofd-tools pdf_to_ofd --filePath=/path/to/input.pdf
# MCP stdio mode (for Claude Desktop etc.)
npm start
# SSE server mode (for remote HTTP access)
npm run start:sse
| Variable | Description | Default |
|---|---|---|
API_KEY | API Key (format: dj_live_ + 40 chars) | Required |
API_URL | API base URL | https://ofd365.com/admin-api |
Configure via environment variables, .env file, or CLI arguments (--API_KEY=xxx).
pdf_to_ofd{ "filePath": "string" }
ofd_to_pdf{ "filePath": "string" }
ofd_to_image{ "filePath": "string" }
get_ofd_content{ "filePath": "string" }
read_file_as_base64{ "filePath": "string" }
| Category | Formats |
|---|---|
| Document | pdf, ofd, doc, docx, xls, xlsx, ppt, pptx, txt |
| Image | jpg, jpeg, png, bmp, tif, tiff, gif |
# CLI mode
ofd-tools pdf_to_ofd --filePath=/path/to/input.pdf
ofd-tools ofd_to_pdf --filePath=/path/to/input.ofd
ofd-tools ofd_to_image --filePath=/path/to/input.ofd
ofd-tools get_ofd_content --filePath=/path/to/input.ofd
ofd-tools read_file_as_base64 --filePath=/path/to/file
| Mode | Command | Use Case |
|---|---|---|
| CLI | ofd-tools <tool> --filePath=xxx | Direct API calls from terminal |
| stdio MCP | npm start | Claude Desktop and other MCP clients |
| SSE | npm run start:sse | Remote HTTP/SSE access |
POST {API_URL}/convert/commonX-Api-Key headerbase_data, meta_data, file_listrequest_type: "4")ENABLE_LOGGING=true; output to file with LOG_TO_FILE=true.For issues or questions, contact support at support-ofd@dianju.com.