@tpmjs/tools-runbook-draft
Draft operational runbooks from procedure steps with commands and verification. Creates structured documentation for operational procedures with optional command examples and verification steps.
Test @tpmjs/tools-runbook-draft (runbookDraftTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-runbook-draftpnpm add @tpmjs/tools-runbook-draftyarn add @tpmjs/tools-runbook-draftbun add @tpmjs/tools-runbook-draftdeno add npm:@tpmjs/tools-runbook-draftimport { runbookDraftTool } from '@tpmjs/tools-runbook-draft';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { runbookDraftTool } from '@tpmjs/tools-runbook-draft';
const result = await generateText({
model: openai('gpt-4o'),
tools: { runbookDraftTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
titlestringTitle of the runbook
stepsarrayArray of procedure steps
Schema extracted: 1/1/2026, 8:18:21 AM
Draft operational runbooks from procedure steps with commands and verification.
npm install @tpmjs/tools-runbook-draft
import { runbookDraftTool } from '@tpmjs/tools-runbook-draft'; const result = await runbookDraftTool.execute({ title: 'Database Migration Runbook', steps: [ { action: 'Backup the database', command: 'pg_dump mydb > backup.sql', verification: 'Check that backup.sql exists and has content', }, { action: 'Stop the application', command: 'systemctl stop myapp', verification: 'Run systemctl status myapp to confirm stopped', }, { action: 'Run migrations', command: 'npm run migrate', verification: 'Check migration logs for errors', }, { action: 'Start the application', command: 'systemctl start myapp', verification: 'Run systemctl status myapp to confirm running', }, ], }); console.log(result.runbook); // Markdown-formatted runbook with all steps console.log(`Steps: ${result.stepCount}`); console.log(`Has commands: ${result.hasCommands}`);
title (string, required): Title of the runbooksteps (array, required): Array of procedure stepsaction (string, required): Description of the action to performcommand (string, optional): Command to executeverification (string, optional): Verification step to confirm successrunbook (string): Markdown-formatted runbook documentstepCount (number): Number of steps in the runbookhasCommands (boolean): Whether any steps include commandsMIT
Downloads/month
0
Quality Score