🧩Single Message Input
Also known as single message mode, one-shot query, Claude Agent SDK Single Message Input
The mode that sends one prompt and ends, for jobs done in one go.
Think of it like
It is like sending a letter. You write it once, and wait for the reply.
Example
Leo's nightly job asks the agent to sum up the day's commits. One prompt is all it needs, so he uses single message input.
Why it matters
It is the simplest way to run a task, as long as the task needs no follow-up.
Definition
Common mistake
Key takeaways
- 1One prompt, one run. Then done.
- 2No images or interrupts. Limited.
- 3Raises on limits. Use try.