{ "description": "Provider-facing session execution. One invocation runs its configured before/after modifier exactly once, on the full input and on the returned result. Shared by the TypeScript runner (sessionToolsModifiers.test.ts) and the Python sync and async runners (test_session_execution_modifiers.py).", "batchSlug": "COMPOSIO_MULTI_EXECUTE_TOOL", "localSlug": "LOCAL_ECHO", "remoteSlug": "GMAIL_ECHO", "beforeTag": "before", "afterTag": "after", "cases": [ { "name": "direct local tool", "kind": "direct", "tools": ["LOCAL_ECHO"], "expected": { "localCalls": 1, "remoteCalls": 0, "entries": [{ "tool_slug": "LOCAL_ECHO", "tag": "after:before" }] } }, { "name": "all-local batch", "kind": "batch", "tools": ["LOCAL_ECHO"], "expected": { "localCalls": 1, "remoteCalls": 0, "entries": [{ "tool_slug": "COMPOSIO_MULTI_EXECUTE_TOOL", "tag": "after:before" }] } }, { "name": "remote-only batch", "kind": "batch", "tools": ["GMAIL_ECHO"], "expected": { "localCalls": 0, "remoteCalls": 1, "entries": [{ "tool_slug": "GMAIL_ECHO", "tag": "after:before" }] } }, { "name": "mixed batch", "kind": "batch", "tools": ["GMAIL_ECHO", "LOCAL_ECHO"], "expected": { "localCalls": 1, "remoteCalls": 1, "entries": [ { "tool_slug": "GMAIL_ECHO", "tag": "after:before" }, { "tool_slug": "LOCAL_ECHO", "tag": "after:before" } ] } }, { "name": "before modifier rejects", "kind": "batch", "tools": ["GMAIL_ECHO", "LOCAL_ECHO"], "beforeRejects": true, "expected": { "localCalls": 0, "remoteCalls": 0 } }, { "name": "mixed batch awaiting approval, then completed", "kind": "batch", "tools": ["GMAIL_ECHO", "LOCAL_ECHO"], "pendingApprovals": 2, "expected": { "localCallsWhilePending": 0, "localCalls": 1, "remoteCalls": 3, "entries": [ { "tool_slug": "GMAIL_ECHO", "tag": "after:before" }, { "tool_slug": "LOCAL_ECHO", "tag": "after:before" } ] } } ] }