[eric] agents: RunToolScript (PTC): scripts chain allowlisted tools in one turn and only printed output enters context (hermes code_execution lift, ENG-354 lever)

This commit is contained in:
ciregenz
2026-08-18 23:41:38 -07:00
parent 8c2ebf0f21
commit e6d05dfb1b
8 changed files with 432 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ BUILTIN_TOOLS: list[BuiltinTool] = [
BuiltinTool(name="Agent", display_name="CreateAgent", description="Spawn a sub-agent to handle a complex subtask", category="agents"),
BuiltinTool(name="InvokeAgent", description="Invoke a copy of an existing agent with a new message, preserving full conversation context", category="agents"),
BuiltinTool(name="CanvasCommand", display_name="Canvas control", description="Move, collapse, tile, close, or tidy cards on the canvas after spawn", category="agents"),
BuiltinTool(name="RunToolScript", display_name="Tool scripting", description="Chain many tool calls in one scripted step; only the distilled output enters the conversation", category="agents"),
# These two always had real deny-gates at dispatch (register_builtin_mcp_servers), but were missing here, so the permissions API refused to store a policy for them and the gates were unreachable (ENG-284).
BuiltinTool(name="ShowUI", display_name="Rich UI", description="Render rich inline components in chat, and ask questions through interactive UI", category="interaction"),
BuiltinTool(name="Skill", description="Load an installed skill's instructions into the conversation", category="skills"),