Help develop and debug Steel automation with live session monitoring
Develops and debugs Steel automation with live session monitoring and Playwright integration.
/plugin marketplace add nibzard/steel-marketplace/plugin install steel-forge@steel-marketplaceHelp the user develop Steel automation with live debugging capabilities and best practices.
sessionViewerUrl during developmentIf user has Steel CLI (@steel-dev/cli), you can suggest:
steel run <template> --view - Run cookbook examples with live session viewersteel browser start - Start local Steel browser for developmentsteel config - View current Steel configurationInstall if needed: npm install -g @steel-dev/cli
const session = await client.sessions.create({
dimensions: { width: 1280, height: 800 }
});
console.log('Watch live:', session.sessionViewerUrl);
import { chromium } from 'playwright';
const browser = await chromium.connectOverCDP(
`${session.websocketUrl}?apiKey=${process.env.STEEL_API_KEY}`
);
const context = browser.contexts[0];
const page = context.pages[0];
await page.goto('https://example.com');
Selector Not Found:
// Use multiple wait strategies
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="element"]', {
timeout: 10000
});
Session Timeout:
const session = await client.sessions.create({
sessionTimeout: 300000 // 5 minutes
});
Proxy Issues:
const session = await client.sessions.create({
useProxy: {
country: 'US'
}
});
context.newPage() for multiple tabssessionViewerUrl in your app for human-in-the-loopblockAds: true by default for faster loadingsessionViewerUrl to see what's happeningAlways prioritize practical, working code over complex abstractions.