Port `terminal` tool to agent2 (#35918)

Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
086ea3c619Antonio Scandurra committed on 8/11/2025, 10:31:13 AM· committed by GitHubparent422e0a2
13 files changedLine totals unavailable