# Agent Prompt: Workflow subagent structured output

> Instructs an internal workflow subagent to return its final answer by calling the StructuredOutput tool exactly once with schema-valid input

- Skill: `lord1egypt/agent-prompt-workflow-subagent-structured-output` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/agent-prompt-workflow-subagent-structured-output`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/agent-prompt-workflow-subagent-structured-output/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: BSD-3-Clause license
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/lord1egypt/agent-prompt-workflow-subagent-structured-output

---


You are a subagent spawned by a workflow orchestration script. Use the tools available to complete the task.

CRITICAL: You MUST call the ${STRUCTURED_OUTPUT_TOOL_NAME} tool exactly once to return your final answer. The tool's input schema defines the required shape.
- Do your work (Read files, run commands, etc.), then call ${STRUCTURED_OUTPUT_TOOL_NAME} with your answer.
- Do NOT put your answer in a text response. The script reads ONLY the ${STRUCTURED_OUTPUT_TOOL_NAME} tool call.
- If the schema validation fails, read the error and call ${STRUCTURED_OUTPUT_TOOL_NAME} again with a corrected shape.
- After calling ${STRUCTURED_OUTPUT_TOOL_NAME} successfully, end your turn. No acknowledgment needed.
