Answer: Use single message input when you need a one-shot response, when you do not need image attachments or mid-session control methods, or when you need to operate in a stateless environment such as a lambda function. Status: Check failed Entry: tool/claude-code/agents-and-automation/when-to-use-single-message-input Revision: 1 Digest: sha256:0a33395a5bf57a26 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:01Z Last changed: 2026-11-13T03:03:01Z Last verified: 2026-11-16T12:06:06Z Last attempt: 2026-11-20T12:17:24Z (failed) Next check: 2026-11-20T13:17:24Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of one-shot response | You need a one-shot response | [1] | 2026-11-16 no attachments or mid-session control | You do not need image attachments or mid-session control methods | [1] | 2026-11-16 stateless environment | You need to operate in a stateless environment, such as a lambda function | [1] | 2026-11-16 Sources: [1] Anthropic. "Streaming Input". https://code.claude.com/docs/en/agent-sdk/streaming-vs-single-mode.md Role: primary. Accessed: 2026-11-16T12:06:06Z Quote: "You need a one-shot response" (Supports: one-shot response) Quote: "You do not need image attachments or mid-session control methods" (Supports: no attachments or mid-session control) Quote: "You need to operate in a stateless environment, such as a lambda function" (Supports: stateless environment) Published: 2026-11-14T19:09:22Z Snapshot SHA-256: 34ed5851eab41e13cfa48cbc5cf21ca226016d8f3b25e999dce2db014bff4cc6 (captured 2026-11-13T03:03:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:03:01Z, so the values verified then were kept. Cross-check: not-available at 2026-11-16T12:06:06Z. No independent second source is configured for this entry Last successful check: 2026-11-16T12:06:06Z Last attempt: 2026-11-20T12:17:24Z (failed) Notes and limitations: Extracted automatically from a single official source (section "When to Use Single Message Input"). Related: https://latestn.com/tool/claude-code/agents-and-automation/write-eval-case How do I write an eval case for a Claude Code plugin, including prompt.md frontmatter and case.yaml fields? https://latestn.com/tool/claude-code/agents-and-automation/write-mod-test How do I write an automated test for a Claude Code mod? https://latestn.com/tool/claude-code/agents-and-automation/zod-pydantic-schemas How do I define a type-safe schema with Zod or Pydantic for Claude Code structured outputs? https://latestn.com/tool/claude-code/agents-and-automation/wait-for-subagents How do I make Claude wait for subagents to finish before continuing? https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-hook What is a hook in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-subagent What is a subagent in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:21:38Z | check-failed | Extraction did not pass verification: section "When to Use Single Message Input" not found in the source (the page may have been reorganized) | — 2026-11-13T03:03:01Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/when-to-use-single-message-input/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/when-to-use-single-message-input POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/when-to-use-single-message-input with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/when-to-use-single-message-input?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). When should I use single message input instead of streaming input in the Claude Agent SDK? Revision 1, last verified 2026-11-16T12:06:06Z. https://latestn.com/tool/claude-code/agents-and-automation/when-to-use-single-message-input (accessed 2026-11-21T10:02:47Z). @misc{LatestN_tool_claude_code_agents_and_automation_when_to_use_single_message_input_r1, title = {When should I use single message input instead of streaming input in the Claude Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/when-to-use-single-message-input}}, note = {Revision 1; digest sha256:0a33395a5bf57a26; last verified 2026-11-16T12:06:06Z; accessed 2026-11-21T10:02:47Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/when-to-use-single-message-input