steampipe_plugin_show
Retrieve detailed information about a specific Steampipe plugin, including version, memory limits, and configuration settings for better plugin management.
Instructions
Get details for a specific Steampipe plugin installation, including version, memory limits, and configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the plugin to show details for |
Implementation Reference
- src/tools/steampipe_plugin_show.ts:19-73 (handler)The async handler function that checks for database availability, executes a SQL query to retrieve details for the specified Steampipe plugin, handles cases where the plugin is not found or errors occur, and returns the results as JSON or error messages.handler: async (db: DatabaseService, args: { name: string }) => { if (!db) { return { content: [{ type: "text", text: "Database not available. Please ensure Steampipe is running and try again." }], isError: true }; } try { const query = ` SELECT plugin_instance, plugin, version, memory_max_mb, limiters, file_name, start_line_number, end_line_number FROM steampipe_plugin WHERE plugin = $1 `; const result = await db.executeQuery(query, [args.name]); if (result.length === 0) { return { content: [{ type: "text", text: `Plugin '${args.name}' not found` }], isError: true }; } return { content: [{ type: "text", text: JSON.stringify({ plugin: result[0] }) }] }; } catch (err) { logger.error("Error showing plugin details:", err); return { content: [{ type: "text", text: `Failed to get plugin details: ${err instanceof Error ? err.message : String(err)}` }], isError: true }; } }
- Input schema specifying an object with a required 'name' string property for the plugin name.inputSchema: { type: "object", properties: { name: { type: "string", description: "Name of the plugin to show details for" } }, required: ["name"], additionalProperties: false },
- src/tools/index.ts:24-30 (registration)Registration of the steampipe_plugin_show tool (as pluginShowTool) in the exported tools object used by the server.export const tools = { steampipe_query: queryTool as DbTool, steampipe_table_list: tableListTool as DbTool, steampipe_table_show: tableShowTool as DbTool, steampipe_plugin_list: pluginListTool as DbTool, steampipe_plugin_show: pluginShowTool as DbTool, } as const;
- src/tools/index.ts:12-12 (registration)Import of the tool implementation from its dedicated file.import { tool as pluginShowTool } from './steampipe_plugin_show.js';