Kraken.io connects to a Nagent workspace with an API key. Once it is connected, agents can call 3 Kraken.io actions: "Check Kraken.io User Status", "Optimize Image by URL" and "Preserve Image Metadata". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against Kraken.io, with input parameters and output schema.
KRAKEN_IO_CHECK_USER_STATUSTool to retrieve current Kraken.io account status and quota usage. Use when you need to verify plan limits and remaining quota before processing images.
Input parameters
Your Kraken.io API Key.
Your Kraken.io API Secret.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
KRAKEN_IO_OPTIMIZE_IMAGE_URLTool to optimize an image from a public URL. Use when you need to compress, resize, or convert an externally hosted image. Returns result immediately if 'wait' is true.
Input parameters
Development mode (no real optimization)
Publicly accessible URL of the image to optimize
Authentication credentials for Kraken API
Return image also in AVIF format
Return optimization result synchronously if true
Return image also in WebP format
Use lossy optimization mode
Resize options sub-object
Convert options sub-object for image format conversion
Compression quality (0-100) for lossy mode
Use lossless optimization mode
S3 storage options sub-object
Preserve image metadata (EXIF, IPTC) in output
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
KRAKEN_IO_PRESERVE_METADATATool to preserve EXIF and other metadata during Kraken.io image optimization. Use when you need to maintain metadata while compressing images.
Input parameters
Use developer mode (no real optimization)
Remote image URL to optimize, required if `file` is not provided
Authentication credentials for Kraken.io API
Binary content of the image to upload, required if `url` is not provided
Return result synchronously when true
Use lossy optimization mode
Image quality for lossy mode (0-100)
S3 storage parameters for optimized image.
Filename for the uploaded file when using `file`
Preserve all EXIF and other metadata when true
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 3 Kraken.io actions on Nagent: "Check Kraken.io User Status", "Optimize Image by URL" and "Preserve Image Metadata". Check Kraken.io User Status: Retrieve current Kraken.io account status and quota usage. Each action is listed on this page with its input parameters and its output.
Kraken.io connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Check Kraken.io User Status takes 2 required inputs: api_key and api_secret. It returns data, error and successful.