Run Modem Agent
modem_agent_invokeAsk the Modem agent a question or give it a task. Use it for questions about the organization's data, such as which customers asked for something, topics, companies, people, conversations, and the PRs and issues that resolved them, and for work that needs several steps or an action in Linear, Slack, or GitHub. Pass the user's question as written; add only context the agent cannot see in its own conversation. Spends agent credits. Returns immediately with conversation_id and run_id; poll modem_agent_get_run for the result. Before your first call, read the skill: modem_skills({ name: "agent-runs" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Natural-language prompt for the Modem agent. | |
| idempotency_key | Yes | Stable retry key. Reuse only for the exact same prompt. |