Repost LinkedIn post
Input
postUrl requiredLinkedIn post permalink (/feed/update/urn:li:activity:.../ or /posts/...) to repost.
text optionalOptional commentary. Omit for an instant repost (no commentary). Provide it to use "Repost with your thoughts" -- your text is added above the quoted post. This publishes a real, public repost-with-thoughts under the user's account immediately, so confirm the exact commentary (and each mention) with them before running.
mentions optionalPerson or organization names to @mention, appended in order at the end of text (each as ' @Name'); only used with the with-thoughts flow (requires `text`). Confirm each name with the user before running, and ask them to clarify any ambiguous name (e.g. a bare first name) with a full name first. Each name is resolved through the composer's own mention typeahead by an exact, case-insensitive match on the suggestion's primary line -- never guessed from a partial or fuzzy match. If any name has no exact match, or more than one suggestion shares that exact match, nothing is posted and the run throws, naming which mention failed and listing the ambiguous candidates.
Default: []Output
postUrl requiredEchoes the permalink of the post that was (or would have been) reposted.
reposted requiredTrue once the write went through and created a repost (instant or with-thoughts).
account_used requiredThe real account the repost was performed under, echoed from the session/UI.
alreadyReposted requiredTrue when the instant-repost flow was refused because you'd already instantly reposted this post (LinkedIn blocks duplicate instant reposts per account). Always false for the with-thoughts flow -- LinkedIn allows multiple quote-reposts of the same post.
verified_on_page requiredTrue if the script independently reloaded the new repost's own permalink and confirmed it actually renders there (instant repost: a matching feed card; with-thoughts: the commentary text). True on an alreadyReposted hit -- the pre-existing repost was what was matched.
url optionalPermalink of the newly created repost. Absent when alreadyReposted is true (no new repost exists).
urn optionalThe new repost's own urn -- urn:li:activity:... for an instant repost, urn:li:share:... for a repost with thoughts. Absent when alreadyReposted is true.
