{"schemaVersion":"toolkit.solution-index.v1","locale":"zh","solutions":[{"schemaVersion":"toolkit.solution-page.v1","publisher":{"name":"ToolkitFun","url":"https://toolkit.fun"},"slug":"fillable-pdf","category":"documents","status":"beta","locale":"zh","documentUrl":"https://toolkit.fun/solutions/documents/fillable-pdf.json","title":"可填写 PDF 制作","summary":"上传现有 PDF，识别填写区域，校正字段并导出可填写的 AcroForm PDF。","pageUrl":"https://toolkit.fun/solutions/documents/fillable-pdf","requestUrl":"https://toolkit.fun/solutions/documents/fillable-pdf/request","tool":{"slug":"pdf-fillable-draft","status":"available","manifestUrl":null},"workflow":{"slug":"fillable-pdf-delivery","status":"available","pageUrl":"https://toolkit.fun/solutions/documents/fillable-pdf"},"delivery":{"status":"available","steps":["上传现有 PDF","识别明确的空白线和复选框","人工校正字段位置","导出并检查最终 PDF"],"deliverables":["文本框、复选框、单选框和下拉框字段","字段名称、必填状态和页面坐标","人工复核后的 AcroForm PDF","导出后校验 AcroForm 字段和页面关联"],"constraints":["复杂计算、签名和手写识别需要单独评估","扫描件和无明确空白的文件需手动放置字段","字段坐标以 PDF 页面坐标为准，导出前可以逐个修改"]},"intake":{"mode":"online_upload","onlineUploadAvailable":true,"endpoint":"https://toolkit.fun/api/v1/solutions/documents/fillable-pdf/analyze and /api/v1/solutions/documents/fillable-pdf/generate","contact":"mailto:support@toolkit.fun","fields":["filename","pageCount","fieldTypes","targetReaders","deadline","notes"]},"pricing":{"model":"credits","analyze":0,"generate":"ceil(pages/5) + ceil(fields/10)","currency":"ToolkitFun Credits"},"locales":{"zh":{"title":"可填写 PDF 制作","summary":"上传现有 PDF，识别填写区域，校正字段并导出可填写的 AcroForm PDF。"},"en":{"title":"Fillable PDF creation","summary":"Upload a PDF, review detected form fields, and export a fillable AcroForm PDF."}},"agent":{"callable":true,"endpoints":{"rest":"/api/v1/solutions/documents/fillable-pdf/analyze and /api/v1/solutions/documents/fillable-pdf/generate","mcp":null},"authentication":{"discovery":"public","execution":"session_or_api_token"},"pricing":{"status":"credits","amount":"ceil(pages/5) + ceil(fields/10)","currency":"ToolkitFun Credits","analyze":"free"},"requiresHumanReview":true,"executionStatus":"available","discoveryTerms":["fillable PDF","AcroForm","PDF form fields","可填写 PDF","PDF 表单字段"],"nextAction":"调用 analyze 上传 PDF 获取候选字段，再将校正后的 fields 传给 generate 下载可填写 PDF。","discoveryUrl":"https://toolkit.fun/solutions.json","humanReviewUrl":"https://toolkit.fun/solutions/documents/fillable-pdf/request","contract":{"coordinateSystem":"displayed_page_top_left_points","limits":{"maxBytes":8388608,"maxPages":100,"maxNewFields":200},"analyze":{"method":"POST","path":"/api/v1/solutions/documents/fillable-pdf/analyze","input":{"contentBase64":"PDF base64"},"output":["pages","fonts","candidates","existingFieldCount","contentBase64"],"detection":"explicit blank markers only; scans require manual fields"},"generate":{"method":"POST","path":"/api/v1/solutions/documents/fillable-pdf/generate","input":{"contentBase64":"PDF base64 (prefer analyze output)","filename":"form.pdf","fields":[{"name":"applicant_name","type":"text","page":1,"x":40,"y":60,"width":160,"height":24,"required":true,"value":"","fontId":"","fontSize":null,"coverOriginal":false}]},"output":["contentBase64","filename","fieldCount","addedFieldCount","verified"]},"billing":{"model":"ToolkitFun Credits","analyze":0,"generate":"ceil(pages/5) + ceil(fields/10)","receipt":"output.billing","task":"output.run.id"},"fieldRules":{"types":["text","checkbox","radio","dropdown"],"names":"unique; no dots; 1-120 characters","page":"1-based","bounds":"fully inside displayed page","options":"radio/dropdown require unique ASCII options; radio needs >=2; buttons arranged left to right beside existing labels","text":"fontId/fontSize can match a source font and nearby size; coverOriginal=true draws an opaque white rectangle under a text field to hide the original text visually; source content remains in the PDF; missing glyphs are rejected","emptyFields":"rejected","existingFields":"preserved","signedFiles":"rejected","encryption":"empty-password PDFs decrypted with qpdf; password-locked PDFs rejected"},"errors":["PDF_FIELDS_REQUIRED","PDF_FIELD_NAME_INVALID","PDF_FIELD_GEOMETRY_INVALID","PDF_FIELD_OPTIONS_INVALID","PDF_FONT_UNAVAILABLE","PDF_FONT_GLYPH_MISSING","PDF_PASSWORD_REQUIRED","PDF_SIGNED","PDF_PAGE_LIMIT"]}}},{"schemaVersion":"toolkit.solution-page.v1","publisher":{"name":"ToolkitFun","url":"https://toolkit.fun"},"slug":"website-deployment","category":"websites","status":"beta","locale":"zh","documentUrl":"https://toolkit.fun/solutions/websites/website-deployment.json","title":"网站生成与部署","summary":"把静态网站构建、预览、检查并发布到 ToolkitFun 托管地址。","pageUrl":"https://toolkit.fun/solutions/websites/website-deployment","requestUrl":null,"tool":{"slug":"website.deploy","status":"available","manifestUrl":null,"manifest":{"id":"toolkit.website-deployment","version":"0.1.0","apiVersion":"toolkit.plugin.v1","resources":["website","website.version"],"tools":["website.create","website.build","website.deploy","website.preview","website.qa","website.publish","website.rollback","website.status"],"workflows":["website.deploy"],"artifacts":["website.static-build","website.preview-url","website.live-url","website.qa-report"],"providers":["filesystem","cloudflare-r2"]}},"workflow":{"slug":"website.deploy","status":"available","pageUrl":"https://toolkit.fun/solutions/websites/website-deployment"},"delivery":{"status":"available","steps":["创建网站资源","提交文件并执行部署工作流","打开预览地址并检查结果","发布或回滚版本"],"deliverables":["不可变网站版本","staging 预览地址","QA 检查报告","生产地址和版本回滚"],"constraints":["当前版本面向静态网站，预览和生产地址由当前托管 provider 提供","动态后端、数据库和自定义域名需要单独部署或配置","源码构建受 WEBSITE_BUILD_ENABLED 控制；发布前必须完成构建和 QA"]},"intake":{"mode":"workflow","onlineUploadAvailable":true,"websiteResourceRequired":true,"createEndpoint":{"method":"POST","path":"/api/v1/websites"},"deployEndpoint":{"method":"POST","path":"/api/v1/websites/:id/deploy"},"statusEndpoints":[{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId"},{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId/tasks"}],"lifecycleEndpoints":[{"method":"POST","path":"/api/v1/websites/:id/promote"},{"method":"POST","path":"/api/v1/websites/:id/rollback"}],"fields":["websiteId","files","source","provider","operationId","idempotencyKey","versionId"]},"pricing":{"model":"subscription_quota","status":"included_with_plan","note":"Global Live Site、网站存储和基础流量按套餐配额提供；网站 Agent 生成单独按 Agent Credits 计费。"},"locales":{"zh":{"title":"网站生成与部署","summary":"把静态网站构建、预览、检查并发布到 ToolkitFun 托管地址。"},"en":{"title":"Website generation and deployment","summary":"Build, preview, verify, and publish a static website to a ToolkitFun hosted URL."}},"agent":{"callable":true,"endpoints":{"createWebsite":{"method":"POST","path":"/api/v1/websites"},"deploy":{"method":"POST","path":"/api/v1/websites/:id/deploy"},"workflowRun":{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId"},"workflowTasks":{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId/tasks"},"publish":{"method":"POST","path":"/api/v1/websites/:id/promote"},"rollback":{"method":"POST","path":"/api/v1/websites/:id/rollback"},"mcp":null},"authentication":{"discovery":"public","execution":"session_or_api_token"},"pricing":{"status":"subscription_quota","model":"subscription","note":"Global hosting uses plan quotas for live sites, storage and base traffic; website Agent generation is billed separately"},"requiresHumanReview":false,"executionStatus":"available","discoveryTerms":["website deployment","static website","网站部署","发布网站"],"nextAction":"没有 websiteId 时先调用 POST /api/v1/websites 创建资源；再用稳定的 Idempotency-Key 调用 POST /api/v1/websites/:id/deploy，提交 input.files 或 input.source。部署是异步的，请用 workflowRunId 查询运行和任务状态；该工作流会在 QA 通过后自动发布。","nextActionEn":"Create a website with POST /api/v1/websites when you do not have a websiteId. Then call POST /api/v1/websites/:id/deploy with a stable Idempotency-Key and input.files or input.source. Deployment is asynchronous: poll workflowRunId and its tasks; the workflow publishes automatically after QA passes.","discoveryUrl":"https://toolkit.fun/solutions.json","contract":{"schemaVersion":"toolkit.workflow-contract.v1","workflow":{"slug":"website.deploy","asynchronous":true,"stages":["website.build","website.preview","website.qa","website.publish"],"requirement":"website.deploy runs build, preview, QA and publish in order; publish is allowed only after QA passes","completion":"website.deploy publishes automatically after QA; use lifecycle.publish for a separately built version"},"authentication":{"discovery":"public","execution":"session_or_api_token","header":"Authorization: Bearer <toolkit-api-token>"},"idempotency":{"header":"Idempotency-Key","bodyField":"idempotencyKey","retry":"reuse the same key after an unknown response; do not create a new deployment"},"resources":{"create":{"method":"POST","path":"/api/v1/websites","headers":{"authorization":"required"},"body":{"provider":"optional","workspaceId":"optional","projectId":"optional","metadata":"optional object"},"output":["website.id","website.provider","website.status"]},"ownership":"websiteId is owner-scoped to the authenticated user or token subject"},"deploy":{"method":"POST","path":"/api/v1/websites/:id/deploy","headers":{"authorization":"required","idempotencyKey":"required for safe retries","operationId":"optional X-Operation-Id or body.operationId"},"body":{"input":{"requiredOneOf":["files","source"],"files":{"forms":["object { \"index.html\": \"<html>...</html>\" }","array [{ path: \"index.html\", content: \"<html>...</html>\" }]"],"requirements":["relative paths only","index.html required by QA","JSON API file content is UTF-8 text","2 MiB maximum per file and 8 MiB maximum total by default"]},"source":{"status":"configuration_dependent","forms":["{ files: [{ path: \"package.json\", content: \"...\" }], build: { command: \"npm run build\", outputDir: \"dist\" } }"],"requirements":["source.files is required; source.build is optional and defaults to npm run build with outputDir dist","only npm run build/generate/export is accepted","disabled unless WEBSITE_BUILD_ENABLED=true"]}},"provider":"optional; defaults to the website provider","operationId":"optional stable operation identifier"},"response":{"created":201,"idempotentReplay":200,"fields":["workflowRunId","workflowTaskId","workerJobId"],"note":"The response acknowledges queueing. It does not contain the final preview or live URL."}},"status":{"run":{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId"},"tasks":{"method":"GET","path":"/api/v1/workflow-runs/:workflowRunId/tasks"},"terminalOutputs":["versionId","previewUrl","liveUrl","report","step summary"]},"lifecycle":{"publish":{"method":"POST","path":"/api/v1/websites/:id/promote","body":{"input":{"versionId":"qa-passed version id"}}},"rollback":{"method":"POST","path":"/api/v1/websites/:id/rollback","body":{"input":{"versionId":"previous version id"}}}},"pricing":{"status":"subscription_quota","model":"subscription","note":"Global Live Site、网站存储和基础流量按套餐配额提供；域名购买与超额流量暂未开放。Agent website generation is metered separately."},"errors":["LOGIN_REQUIRED","website 不存在","website build requires at least one file","website QA requires index.html","website publish requires a version that passed QA","WEBSITE_BUILD_DISABLED","WEBSITE_BUILD_COMMAND_UNSUPPORTED","WEBSITE_BUILD_PACKAGE_REQUIRED","WEBSITE_BUILD_PACKAGE_INVALID","WEBSITE_BUILD_SCRIPT_MISSING","WEBSITE_BUILD_SOURCE_TOO_LARGE","WEBSITE_BUILD_OUTPUT_EMPTY","WEBSITE_BUILD_TIMEOUT"]}}}]}