Get Instructions for generating FlyonUI blocks using the existing FlyonUI blocks as an inspiration.
get-inspire-instructionsGet step-by-step instructions to create new FlyonUI blocks based on existing examples. Ideal for generating components by inspiration using commands /inspire-flyonui or /iui.
Instructions
Get instructions for working with FlyonUI blocks. This tool provides instructions for creating new FlyonUI blocks by taking the inspiration from existing FlyonUI blocks. Use this tool when the user requests to generate a new component by inspirations. mentions /inspire-flyonui or /iui.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:45-75 (registration)Registration of the 'get-inspire-instructions' tool via server.registerTool() with its title and description.
// A tool to get instructions for generating FlyonUI blocks using the existing FlyonUI blocks as an inspiration. server.registerTool( "get-inspire-instructions", { title: "Get Instructions for generating FlyonUI blocks using the existing FlyonUI blocks as an inspiration.", description: "Get instructions for working with FlyonUI blocks. This tool provides instructions for creating new FlyonUI blocks by taking the inspiration from existing FlyonUI blocks. Use this tool when the user requests to generate a new component by inspirations. mentions /inspire-flyonui or /iui.", }, async () => { try { const url = `/instructions?path=inspire-ui.md`; const response = await apiClient.get(url); if (response.status !== 200) { throw new Error(`HTTP error! status: ${response.status}`); } return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), } ], }; } catch (error) { console.error("Error fetching block metadata:", error); throw new Error("Failed to fetch block metadata"); } } ); - src/index.ts:52-74 (handler)The handler function for 'get-inspire-instructions' that fetches instructions from the /instructions?path=inspire-ui.md endpoint via apiClient.
async () => { try { const url = `/instructions?path=inspire-ui.md`; const response = await apiClient.get(url); if (response.status !== 200) { throw new Error(`HTTP error! status: ${response.status}`); } return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), } ], }; } catch (error) { console.error("Error fetching block metadata:", error); throw new Error("Failed to fetch block metadata"); } } - src/index.ts:48-50 (schema)Schema/metadata definition for the tool: title and description (no input schema defined, as the tool takes no arguments).
{ title: "Get Instructions for generating FlyonUI blocks using the existing FlyonUI blocks as an inspiration.", description: "Get instructions for working with FlyonUI blocks. This tool provides instructions for creating new FlyonUI blocks by taking the inspiration from existing FlyonUI blocks. Use this tool when the user requests to generate a new component by inspirations. mentions /inspire-flyonui or /iui.",