inspect_page
Extract current page details including URL, title, and meta tags to inspect web content and verify metadata.
Instructions
Get page info (url, title, meta).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- extension/background.js:596-610 (handler)Handler for 'inspect.page' tool - extracts page metadata including title, description, charset, canonical URL, OpenGraph tags, viewport dimensions, scroll height, and ready state
case 'inspect.page': { const tab = await chrome.tabs.get(tabId) const meta = await execFunc(tabId, () => ({ title: document.title, description: document.querySelector('meta[name="description"]')?.content || '', charset: document.characterSet, lang: document.documentElement.lang, canonical: document.querySelector('link[rel="canonical"]')?.href || '', og_title: document.querySelector('meta[property="og:title"]')?.content || '', viewport_height: window.innerHeight, scroll_height: document.documentElement.scrollHeight, ready_state: document.readyState, })).catch(() => ({})) return { url: tab.url, title: tab.title, ...meta } } - extension/background.js:310-322 (registration)Tool registration in capabilities list - 'inspect.page' is advertised as a supported operation along with related inspect tools (networkStart, networkDump, networkStop)
case 'capabilities': return { runtime: 'extension', version: '0.6.5', supports: [ 'eval', 'pointer', 'keyboard', 'nav', 'wait', 'screenshot', 'cookies', 'storage', 'click', 'type', 'fill', 'hover', 'scroll', 'pressKey', 'select', 'fetch', 'find', 'download', 'waitFor', 'waitForNetwork', 'ssrState', 'copyAll', 'upload', 'dialog', 'extract', 'tab.new', 'tab.list', 'tab.close', 'inspect.page', 'inspect.networkStart', 'inspect.networkDump', 'inspect.networkStop', 'intercept.on', 'intercept.off' ] }