Recommended Free Tools
If chrome.tabs.captureVisibleTab() reports a permission error, first check that the extension declares activeTab or <all_urls> and that the call runs in an extension context after a qualifying user action. For a screenshot started by a user, activeTab is usually the narrower choice: it grants temporary access to the active tab rather than requesting broad access to every site. It does not grant access to restricted pages such as chrome:// pages.
What permission does captureVisibleTab() require?
Chrome for Developers documents two permission routes for chrome.tabs.captureVisibleTab(): the extension must have either activeTab or <all_urls>. Declare the permission in the extension manifest. The separate tabs permission is not a substitute for either one, and the method does not require tabs just to capture the visible tab.
These permissions have different scopes and user expectations:
| Permission | Scope and timing | When it fits |
|---|---|---|
activeTab |
Temporary access to the active tab after a user invokes the extension. Access ends when the user navigates to a different origin or closes the tab. | A screenshot action the user starts on the page currently open. |
<all_urls> |
Broad host access across websites, rather than access limited to a user-invoked active tab. | Only when the extension genuinely needs broad host access for its functionality. |
Chrome recommends minimizing permissions and using optional permissions where a feature can work that way. Choose based on the behavior the extension needs, not as a workaround for a call made from the wrong context or after temporary access has expired.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Fix the manifest and user-triggered capture flow
1. Declare activeTab
For a Manifest V3 extension whose user clicks the toolbar action to capture the current page, a minimal manifest can declare activeTab and an action:
{
"manifest_version": 3,
"name": "Visible Tab Capture",
"version": "1.0.0",
"permissions": ["activeTab"],
"background": {
"service_worker": "service-worker.js"
},
"action": {
"default_title": "Capture visible tab"
}
}
Do not add tabs just to make captureVisibleTab() work. The tabs permission relates to access to sensitive properties on tabs.Tab objects, such as a tab’s URL, title, and favicon; it is distinct from the temporary host access granted by activeTab.
2. Call from the extension service worker
Register the action handler in service-worker.js. This example captures the visible tab and downloads the resulting PNG through the downloads API, so it also declares the separate downloads permission. If your extension processes the data another way and does not download it, omit the download code and that permission.
chrome.action.onClicked.addListener(async (tab) => {
if (tab.id === undefined) {
console.error("No active tab ID was provided.");
return;
}
try {
const dataUrl = await chrome.tabs.captureVisibleTab(tab.windowId, {
format: "png"
});
await chrome.downloads.download({
url: dataUrl,
filename: "visible-tab.png",
saveAs: true
});
} catch (error) {
console.error("Visible-tab capture failed:", error);
}
});
Add "downloads" to the manifest permissions array to use that optional download step:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
"permissions": ["activeTab", "downloads"]
After editing the manifest or service worker, reload the unpacked extension from chrome://extensions, open a page you are allowed to capture, and click the extension action. Catch rejected API calls and log their error so you can distinguish a permission problem from an unsupported page, missing tab, or other runtime failure.
Why does chrome.tabs.captureVisibleTab() say permission denied?
Work through the call path in order. A valid manifest permission alone does not guarantee that every page, timing, or extension context is eligible.
The permission is missing or declared incorrectly
Check the loaded extension’s manifest for "permissions": ["activeTab"], or for "<all_urls>" only if broad host access is truly needed. Confirm that you reloaded the extension after changing its manifest. Do not rely on the tabs permission to authorize this method.
The capture happens without a qualifying user invocation
activeTab is granted in response to user invocation, such as clicking the extension action, choosing its context-menu item, using its keyboard shortcut, or selecting an omnibox suggestion. A delayed capture from an unrelated background event should not assume the temporary grant is still available. Arrange the flow so the user action initiates capture while access applies. Chrome documents that access ends when the user navigates to a different origin or closes the tab.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
The API call is in a content script
The tabs API is available to extension service workers and extension pages, but not to content scripts. If page-side code or a content script starts the workflow, send a message to the service worker or extension page and make the chrome.tabs.captureVisibleTab() call there.
// content-script.js: ask the extension context to capture
chrome.runtime.sendMessage({ type: "CAPTURE_VISIBLE_TAB" });
// service-worker.js: perform the capture in the extension context
chrome.runtime.onMessage.addListener((message, sender) => {
if (message.type === "CAPTURE_VISIBLE_TAB") {
chrome.tabs.captureVisibleTab(sender.tab?.windowId, { format: "png" })
.then((dataUrl) => {
// Use or forward dataUrl as appropriate for the extension.
console.log("Capture completed");
})
.catch((error) => console.error("Capture failed:", error));
}
});
This illustrates the context boundary, not a complete message-response design. In a real extension, validate the message and sender, handle a missing window ID, and return or store the image data in the way your application requires.
The target is a restricted page or file URL
Do not assume an extension can capture every browser surface. Chrome’s activeTab guide says access is not granted to restricted pages such as chrome:// pages. Although the tabs API reference describes special capture cases involving chrome: pages, other extensions’ pages, and data: URLs, that does not override the restriction on browser-internal pages. Treat chrome:// pages as unavailable rather than promising support.
For a file: URL, the user must separately enable file access for the extension in its details in Chrome. The extension cannot silently grant itself that access. Ask the user to enable file access only if capturing local files is a real feature requirement.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsRank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
The capture is too frequent
Chrome documents a maximum of MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND with a value of 2 (documented for Chrome 92 and later). Capture is an expensive operation, so do not run tight loops or launch multiple captures per second. Queue work and pace calls to stay within the documented ceiling.
Do I need tabs or activeTab?
For this capture method, use activeTab for a user-triggered screenshot of the current tab, or use <all_urls> only if the extension needs the broader scope. Add tabs only if the extension also needs the sensitive tab fields covered by that permission. These permissions serve different purposes; requesting all of them by default makes the extension broader than the capture flow requires.
Troubleshooting checklist
- Error indicates missing host permission: verify the manifest includes
activeTabor the required broad host permission, then reload the extension. - It works on a toolbar click but fails in automation: check whether the automated path actually invokes the extension in a way that grants
activeTab; a later background task may run after temporary access ends. - The call originates in page code: move the API call to the service worker or an extension page and message that context from the content script.
- The target is a browser settings or internal page: treat restricted
chrome://pages as unsupported; do not try to work around Chrome’s restriction by adding unrelated permissions. - The target is a local file: ask the user to enable the extension’s file access setting in Chrome, then retry.
- Captures intermittently fail in a loop: keep calls at or below Chrome’s documented two-per-second limit and serialize capture work.
- The screenshot succeeds but saving fails: distinguish capture from download. If using the example’s download step, declare
downloadsas well asactiveTab; inspect the download error separately.
If the failure does not match these cases, capture the exact rejected error and identify the page URL scheme, triggering event, extension context, and time between the user action and capture. The permission rules explain common authorization failures, but do not by themselves diagnose unrelated rendering or load failures.
Or skip the browser setup
If your goal is to capture a public website from an application or an AI workflow rather than screenshot the user’s current Chrome tab, ScreenshotNeo offers a website screenshot API. It is not a replacement for captureVisibleTab() when you need the pixels from a user’s active browser tab; it captures a URL through its service instead.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
One GET request returns an image or PDF. For example, save a WebP screenshot of Stripe with cURL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for the request options. Cookie banners, newsletter popups, and chat widgets are removed before the shot; those cleanup steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses indicate the page verdict and billing status. An MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Sign up for free and get 1,000 screenshots a month with no card.
Frequently Asked Questions
Can I call captureVisibleTab() from a popup?
Yes. The tabs API is available to extension pages as well as service workers; the call still needs the required permission and an eligible tab.
Will adding the tabs permission fix permission denied?
Not by itself. Chrome documents activeTab or <all_urls> as the permission requirement for this method.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Can ScreenshotNeo capture the active tab in my extension?
No. ScreenshotNeo captures a supplied website URL through its API; it does not read the user’s current Chrome tab.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

