PrintContentTool
Renders text or HTML content in an off-screen WebView and hands it to PrintManager.print, which opens the system print UI. Plain text is HTML-escaped and wrapped in a monospace <pre> block; pass is_html = true to print raw HTML as-is.
No permissions required, but an Activity is: PrintManager.print() must be called with an Activity context. The Activity comes from activityProvider (see PrintTools.all) or from context if it is itself an Activity; if neither yields a live Activity the tool returns an error. The WebView is created and loaded on the main thread; the call suspends until the page has loaded and the print job has been handed to the system (or LOAD_TIMEOUT_MS elapses). The WebView is strongly held by the print adapter wrapper and destroyed when the print flow finishes (or immediately on failure/timeout).
success indicates the print dialog was launched, not that anything was printed.
Output keys: success, job_name, content_length, message, job_id (may be null).