- Sensitive path blocking — Before auto-uploading a local file, paths are checked against a built-in denylist (segments like
.ssh,.aws, etc., plus risky filenames). Configurable viaComposio(..., sensitive_file_upload_protection=..., file_upload_path_deny_segments=...). @before_file_uploadmodifiers — File path hooks are only via modifiers (same idea as@before_execute): decorate a function, pass it inmodifiers=[...]ontools.get/tools.execute(and tool routersession.tools(...)). Hooks are composed withmerge_before_file_uploadand run when substitutingfile_uploadablepaths, beforebefore_executemodifiers.- Removed standalone kwargs — There is no
before_file_upload=onComposio,get,execute, or the tool router;FileHelperno longer stores a default hook on the client—only the merged modifier hook (orNone) per call. - Errors —
SensitiveFilePathBlockedError/FileUploadAbortedError(and related) when a path is blocked or a hook returnsFalse. - Tests & exports — Tests for merge/scoping/execute wiring;
before_file_uploadand glue exported from the package as needed.
Version note: composio is 0.11.6 in pyproject.toml, with Python >=3.10.