[FEATURE] let a tool call another tool through the full tool pipeline, so inner calls can ask for approval (py + ts)
Human Overview
To be filled in by a human (AI-drafted issue, see team/AI_USAGE_POLICY.md).
SDK Language
Python, TypeScript
Problem Statement
A tool that runs other tools cannot get a human approval for an inner call. When an intervention or hook gates the inner call behind approval (for example HumanInTheLoop asking before delete_file), programmatic_tool_caller can only refuse it: Tool '<name>' needs approval (<reason>), which programmatic_tool_caller cannot prompt for; call it as a normal tool call instead. (harness-ts/src/tools/programmatic-tool-caller.ts:243 gateInnerCall, refusal text at :272). So "ask before delete_file" works for a top-level call and becomes a hard refusal when the same tool is reached through another tool. strands-ts has no agent-level way for a tool to call another tool through the full per-tool pipeline (hooks, interventions, interrupts); agent.tool.<name>() (strands-ts/src/agent/tool-caller.ts) is the direct-call path for callers outside the loop.
Python is the same: harness-py's programmatic_tool_caller refuses with a similar message (harness-py/src/strands_harness/tools/programmatic_tool_caller.py:179 on main 794d37c6e), and strands-py has no tool-level way to call another tool through the pipeline either.
Use Case
Orchestrating tools (a "plan and apply" tool, a migration tool that edits and deletes files, a subagent-like tool that calls registered tools) can respect the same approval policy as the model's own calls, instead of either bypassing it or failing.