View as Markdown
PrintNode icon

PrintNode ACTION

Send Print Job

Sends a print job to a specified printer. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's PrintNode account once, then configure and run Send Print Job 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: "printnode-send-print-job",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    printnode: { authProvisionId: "apn_xxxxxxx" },
    printerId: 10,
    contentType: "Content Type",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Send Print Job inputs
Property Type Description
printerId Printer ID integer
Select a Printer or provide a custom Printer ID.
Required Dynamic
contentType Content Type string
The type of content you are sending. See the documentation for more information
Required
filePath File Path or URL string
The file to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.txt)
Required
title Title string
A title to give the print job. This is the name which will appear in the operating system's print queue.
Optional
source Source string
A text description of how the print job was created or where the print job originated.
Optional
options Options object
An object describing various options which can be set for this print job. See the documentation for more information.
Optional
expireAfter Expire After integer
The maximum number of seconds PrintNode should retain this print job in the event that the print job cannot be printed immediately.
Optional
qty Quantity integer
A positive integer specifying the number of times this print job should be delivered to the print queue.
Optional
authentication Authentication object
If access to the file URL requires HTTP Basic or Digest Authentication, specify the username and password information here. See the documentation for more information.
Optional
syncDir SyncDir dir
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
printnode-send-print-job
Version
1.0.4
App
PrintNode
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes