App Logo
linkedin.com

Download a LinkedIn message attachment

Download the file attached to a message in a classic LinkedIn messaging thread. Returns filename, mimeType, size and the bytes as base64, plus the direct URL. Omit the message urn to take the most recent message in the thread that carries an attachment.

Input

threadUrl required

Conversation thread URL from list_inbox.

maxBytes optional

Refuse to base64-encode anything larger than this. Default 8000000 (8 MB); the URL is still returned.

messageUrn optional

Message identifier to pull from (as returned by this script's own output, or by react_to_message). Omit to take the newest message carrying an attachment.

Output

url required
threadUrl required
messageUrn required
kind optional

image = rendered inline; file = a document card with a download link.

size optional
base64 optional

Bytes, base64-encoded. Null when the file exceeded maxBytes — url is still usable.

filename optional
mimeType optional
pickedLatest optional
skippedEncoding optional

FAQ

Download the file attached to a message in a classic LinkedIn messaging thread. Returns filename, mimeType, size and the bytes as base64, plus the direct URL. Omit the message urn to take the most recent message in the thread that carries an attachment.
Required: threadUrl. Optional: maxBytes, messageUrn.
It returns url, kind, size, base64, filename, mimeType, threadUrl, messageUrn, pickedLatest, skippedEncoding.
Yes. It acts as you on linkedin.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the linkedin.com cookies saved by the Reduck extension.
It only reads. It looks things up on linkedin.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/linkedin.com/get_message_attachment, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/linkedin.com/get_message_attachment
It is part of Reduck's official curated catalogue.

Start building not clicking