Published onNovember 17, 2026Reference · Through the layersPrevent Shell Injection in Python Agent ToolsKeep a filename out of the shell, then handle spaces and leading options with a fixed converter and an explicit argument list.