The activeTab permission
Give your extension temporary access to the page a person chooses, right when they need it.
Access begins after a user gesture and is limited to the active tab.
Request access when it matters
Use the active tab to work with page resources in context. Permission is temporary, so your extension can stay focused on the current task.
chrome.tabs.query({ active: true })