एआई एजेंट्स पोर्टल
YourOwnPDF के सुरक्षित, बिना अपलोड वाले दस्तावेज़ और छवि टूल को अपने स्वायत्त एजेंट निष्पादन प्रवाह, कस्टम LLM टूलकिट और क्लाइंट सेटअप में एकीकृत करें।
स्थानीय सैंडबॉक्स प्रोसेसिंग की गारंटी
एआई एजेंट संवेदनशील व्यावसायिक रिकॉर्ड और कानूनी अनुबंधों को शून्य लीक जोखिम के साथ प्रोसेस कर सकते हैं। सभी फाइल रूपांतरण WebAssembly का उपयोग करके स्थानीय ब्राउज़र मेमोरी में होते हैं। कोई फ़ाइल सर्वर पर अपलोड नहीं की जाती है।
क्या आपके पास कोई ऐसा टूल है जिसे मैं कॉल कर सकूं?
हाँ! YourOwnPDF.com कई एकीकरण ढाँचे प्रदान करता है जिससे एआई एजेंट (जैसे GPT, Gemini, Claude, और कस्टम Python/JS एजेंट) हमारे स्थानीय उपयोगिता स्टैक को खोज और कॉल कर सकते हैं:
- ब्राउज़र ऑटोमेशन (Playwright/Puppeteer): चूंकि यह साइट पूरी तरह से क्लाइंट-साइड सिंगल पेज एप्लीकेशन (SPA) है, इसलिए ब्राउज़र-सक्षम एजेंट इसे हेडलेस ब्राउज़र में सीधे लोड कर सकते हैं, फ़ाइलें ड्रॉप कर सकते हैं और आउटपुट डाउनलोड को सुरक्षित रूप से प्राप्त कर सकते हैं।
- मॉडल कॉन्टेक्स्ट प्रोटोकॉल (MCP): दस्तावेज़ संचालन को स्थानीय टूल के रूप में संगत डेस्कटॉप एलएलएम सहायकों के सामने प्रस्तुत करने के लिए हमारे हल्के स्थानीय एमसीपी सर्वर पैकेज को चलाएं।
- OpenAPI स्कीमा एकीकरण: बुद्धिमान रूटिंग अनुशंसाओं को सक्षम करने के लिए एजेंट को हमारे आधिकारिक OpenAPI विनिर्देश से जोड़ें।
मॉडल कॉन्टेक्स्ट प्रोटोकॉल (MCP) सेटअप
Claude Desktop, Cursor, या अन्य MCP होस्टिंग क्लाइंट का उपयोग करने वाले डेवलपर्स अपनी कॉन्फ़िगरेशन फ़ाइल में निम्नलिखित परिभाषा जोड़कर YourOwnPDF टूल पंजीकृत कर सकते हैं:
{
"mcpServers": {
"yourownpdf-agent-tools": {
"command": "npx",
"args": ["-y", "@yourownpdf/mcp-server"],
"env": {
"YOP_API_ENVIRONMENT": "local-sandbox"
}
}
}
}* नोट: npx के माध्यम से चलाने के लिए होस्ट मशीन पर Node.js का होना आवश्यक है।
OpenAI कस्टम टूल स्कीमा
सुरक्षित फ़ाइल संचालन तक पहुँचने वाले कस्टम GPT या असिस्टेंट एपीआई सेटअप बनाने के लिए इस JSON परिभाषा का उपयोग करें:
{
"name": "yourownpdf_tool_calling",
"description": "Execute local document and image transformations safely inside browser memory.",
"tools": [
{
"type": "function",
"function": {
"name": "merge_pdfs",
"description": "Merge multiple PDF documents into a single output PDF client-side.",
"parameters": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string",
"description": "Array of base64-encoded PDF files to combine."
}
}
},
"required": ["files"]
}
}
},
{
"type": "function",
"function": {
"name": "compress_image",
"description": "Compress JPEG/PNG image assets locally using HTML5 canvas algorithms.",
"parameters": {
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "Base64-encoded source image file."
},
"quality": {
"type": "number",
"description": "Target quality factor between 0.1 and 1.0.",
"minimum": 0.1,
"maximum": 1.0
}
},
"required": ["image", "quality"]
}
}
}
]
}एआई एजेंट टूल निर्देशिका
उपलब्ध टूल और उनके रूटिंग एंडपॉइंट्स का निर्देशिका मानचित्र जो एजेंट पुनर्निर्देशन के लिए उपयोग किया जाता है:
| टूल पहचानकर्ता | सीधा लक्ष्य पथ (URI) | प्राथमिक कार्य | गोपनीयता |
|---|---|---|---|
merge-pdf | /tools/pdf/merge-pdf | एकाधिक पीडीएफ फाइलों को एक दस्तावेज़ में मर्ज करें | 100% स्थानीय |
compress-pdf | /tools/pdf/compress-pdf | ऑफ़लाइन पीडीएफ का आकार सुरक्षित रूप से कम करें | 100% स्थानीय |
pdf-to-word | /tools/pdf/pdf-to-word | स्थानीय रूप से स्वरूपित पाठ निकालें | 100% स्थानीय |
compress-image | /tools/image/compress-image | स्थानीय स्तर पर छवियों का आकार कम करें | 100% स्थानीय |
remove-background | /tools/image/remove-background | स्थानीय स्तर पर छवियों की पृष्ठभूमि हटाएं | 100% स्थानीय |
सभी 40+ एंडपॉइंट देखने के लिए, कृपया संपूर्ण एपीआई दस्तावेज़ पृष्ठ देखें।
LLM टूल कॉलिंग और निष्पादन के उदाहरण
यहाँ स्पष्ट उदाहरण दिए गए हैं जो दर्शाते हैं कि स्वायत्त एआई एजेंट इन उपकरणों को पर्दे के पीछे कैसे कॉल करते हैं:
उदाहरण 1: Playwright ब्राउज़र एजेंट (Python)
एक स्वायत्त ब्राउज़र एजेंट (जैसे Playwright स्क्रिप्ट) सीधे DOM के साथ इंटरैक्ट करके स्थानीय पीडीएफ मर्ज चला सकता है। चूंकि सभी प्रोसेसिंग क्लाइंट-साइड होती है, एजेंट को किसी एपीआई कुंजी की आवश्यकता नहीं होती है:
from playwright.sync_api import sync_playwright
def agent_merge_pdfs(file_paths):
with sync_playwright() as p:
# Launch headless browser and navigate to the tools path
browser = p.chromium.launch(headless=True)
page = browser.new_page()
page.goto("https://yourownpdf.com/tools/pdf/merge-pdf")
# Select the files and inject them into the local upload input element
page.set_input_files("input[type='file']", file_paths)
# Click the action button to merge pages locally in browser memory
page.click("button:has-text('Merge PDF')")
# Intercept and save the direct compiled file download
with page.expect_download() as download_info:
page.click("button:has-text('Download')")
download = download_info.value
download.save_as("output_merged_pdf.pdf")
browser.close()उदाहरण 2: Claude Desktop (MCP सेटिंग्स का आमंत्रण)
जब उपयोगकर्ता फ़ाइल में बदलाव का अनुरोध करता है: "invoice_Jan.pdf और invoice_Feb.pdf को मर्ज करें", तो LLM क्लाइंट इस अनुरोध को स्थानीय MCP सर्वर पर रूट करता है:
// 1. LLM requests local server execution
{
"name": "merge_pdfs",
"arguments": {
"files": [
"JVBERi0xLjQKJWRvY3VtZW50XzE...",
"JVBERi0xLjQKJWRvY3VtZW50XzI..."
]
}
}
// 2. Local MCP server response returned to the LLM (0 server roundtrips)
{
"content": [
{
"type": "text",
"text": "Merge operation successful. Integrated output contains 2 source files. File saved as output_merged_pdf.pdf."
}
]
}