instagram_prepare_dm
Pull conversation history, contact info, and your writing style into one context bundle for drafting an Instagram DM. Resolves ambiguous contacts and leaves sending to a separate action.
Instructions
Get everything needed to draft a DM in one call: who, the conversation so far, and your voice.
This is the tool to reach for when asked to write or reply to someone on Instagram. It bundles the recent back-and-forth with the measured rules of how you write - both in general and specifically to this person - so a draft can match your voice instead of guessing at it.
It only gathers context. Nothing is sent until instagram_send_direct_message is called, which is deliberate: the draft should be shown to you first.
If the person is ambiguous it returns the candidates instead of guessing.
Args: person: Name or handle of who to message. thread_id: Or an existing conversation id. history: How many recent messages to include.
Returns: Either needs_disambiguation with candidates[], or: contact, thread_id, conversation[] (chronological, each {from: 'you'|'them', text, at}), your_voice {rules[], samples[], measurements}, with_this_person {my_message_count, burst_rate, my_samples[]}, and last_message_from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person | No | Who to message, by name or handle, e.g. 'sarah'. Omit if you pass thread_id. | |
| history | No | How many recent messages of context to return. | |
| thread_id | No | Existing conversation id, from instagram_find_person or instagram_list_direct_threads. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||