get_latest_published_media
Resolve the user's SINGLE most recent item published ON THE PLATFORM — singular intents pointing at the live account ("my latest reel", "our last post on Instagram"), or targeting a published post for a flow trigger. A bare "my most recent post" with no platform cue is scheduler-side: use list_scheduled_posts (sortOrder "desc", limit 1). Returns one MediaItem (no picker, no table). Pipe mediaId straight into downstream tools (e.g. plan_flow.trigger.config.media_ids: [mediaId]) without asking the user to choose. Optional mediaType filter narrows to the most recent reel / post / story / carousel. Throws not_found when the account has no matching media. Use list_published_media instead when the user wants to BROWSE multiple items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | No | ||
| mediaType | No |