api/image_get.py.dox.md
image_get.py API endpoint.image_get.py because this directory is intentionally flat.image_get.py owns the runtime implementation.image_get.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.ImageGet (ApiHandler)
get_methods(cls) -> list[str]async process(self, input: dict, request: Request) -> dict | Response_resolve_allowed_image_path(path: str) -> str: Resolve a requested image path and keep it inside Agent Zero's base dir._set_image_headers(response: Response, filename: str, file_ext: str) -> None_send_file_type_icon(file_ext, filename=...): Return appropriate icon for file type_send_fallback_icon(icon_name): Return fallback icon from public directoryIMAGE_EXTENSIONS, SVG_EXTENSIONS, SVG_CONTENT_SECURITY_POLICY.helpers.api.ApiHandler; WebSocket handlers must derive from helpers.ws.WsHandler.ImageGet is an ApiHandler.ImageGet defines process(...).ImageGet defines get_methods(...).base64, helpers, helpers.api, io, mimetypes, os, pathlib, urllib.parse.runtime.is_development, Path.resolve, candidate.resolve, quote, _send_fallback_icon, files.get_abs_path, send_file, os.path.splitext.lower, os.path.basename, Path, candidate.is_absolute, resolved.relative_to, os.path.exists, ValueError, _set_image_headers, _send_file_type_icon, files.fix_dev_path, _resolve_allowed_image_path, files.exists, files.get_base_dir.helpers.api.Response for non-JSON responses, files, redirects, or status-specific replies.tests/test_image_get_security.pyNo child DOX files.