Emboss ACTION
Fill PDF From Context
Upload a flat (non-fillable) PDF plus context (text and/or a file); Emboss detects the fields and fills them with AI in one step, returning the completed PDF. Provide at least one context input. Use Create Fillable Form + Fill Existing Form instead to reuse the same form repeatedly. Polls up to ~12 minutes for large documents. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Emboss account once, then configure and run Fill PDF From Context from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "emboss-fill-from-pdf-context",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
emboss: { authProvisionId: "apn_xxxxxxx" },
file: "File Path Or Url",
contextText: "Context (Text)",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "emboss-fill-from-pdf-context",
"configured_props": {
"emboss": { "authProvisionId": "apn_xxxxxxx" },
"file": "File Path Or Url",
"contextText": "Context (Text)"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "emboss",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "emboss-fill-from-pdf-context",
arguments: {
file: "File Path Or Url",
contextText: "Context (Text)",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
file File Path Or Url | string | Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/form.pdf). Required |
contextText Context (Text) | string | Information to fill the form with, e.g. Applicant: Jane Doe, 38 Birchwood Court, Mooresville, IN — phone (317) 555-0126. Optional |
contextFile Context File | string | A URL or /tmp path to a context document (PDF, DOCX, CSV, image, or text), e.g. /tmp/customer-data.pdf or https://example.com/invoice.pdf. Optional |
idempotencyKey Idempotency Key | string | A unique string (e.g. a UUID) to safely retry this request. If a previous request with the same key already started a job, Emboss returns that original job instead of starting a new one. Scoped to your account; valid 24 hours. Optional |
callbackUrl Callback URL | string | A public HTTPS URL Emboss will POST the job result to when it finishes (ready or failed), signed with X-Emboss-Signature, e.g. https://example.com/webhooks/emboss. Optional — this action already polls until the job completes. Optional |
syncDir Sync Directory | dir | The File Stash directory the output PDF is written to. Defaults to /tmp. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- emboss-fill-from-pdf-context
- Version
- 0.0.2
- App
- Emboss
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗