In agentscope 1.0.18, 1.0.19, and 1.0.19 when the RealtimeAgent session exposes executepythoncode as an available tool, a remote WebSocket user can prompt the agent to call that tool and run Python code in the service environment. In the validated path, RealtimeAgent.acting forwards the model-produced tool call to Toolkit.calltoolfunction, which invokes executepythoncode without an additional approval or isolation boundary on that path.