|
1 | 1 | { |
2 | 2 | // |
3 | | - // Required: |
4 | | - // The displayable name of this node |
| 3 | + // v0 by Vercel — Generative UI tool node |
5 | 4 | // |
6 | | - "title": "v0 by Vercel", |
7 | | - // |
8 | | - // Required: |
9 | | - // The protocol is the endpoint protocol |
| 5 | + // Generates React + Tailwind CSS components from natural-language prompts |
| 6 | + // using the Vercel v0 API. Exposes two tools: |
| 7 | + // - generate_ui: create a component from a text description |
| 8 | + // - refine_ui: iterate on a previous generation with follow-up instructions |
10 | 9 | // |
| 10 | + "title": "v0 by Vercel", |
11 | 11 | "protocol": "tool_v0://", |
12 | | - // |
13 | | - // Required: |
14 | | - // Class type of the node - what it does |
15 | | - // |
16 | 12 | "classType": ["tool"], |
17 | | - // |
18 | | - // Required: |
19 | | - // Capabilities are flags that change the behavior of the underlying |
20 | | - // engine |
21 | | - // |
22 | 13 | "capabilities": ["invoke"], |
23 | | - // |
24 | | - // Optional: |
25 | | - // Register is either filter, endpoint or ignored if not specified. If the |
26 | | - // type is specified, a factory is registered of that given type |
27 | | - // |
28 | 14 | "register": "filter", |
29 | | - // |
30 | | - // Optional: |
31 | | - // The node is the actual physical node to instantiate - if |
32 | | - // not specified, the protocol will be used |
33 | | - // |
34 | 15 | "node": "python", |
35 | | - // |
36 | | - // Optional: |
37 | | - // The path is the executable/script code - it is node dependent |
38 | | - // and is optional for most nodes |
39 | | - // |
40 | 16 | "path": "nodes.tool_v0", |
41 | | - // |
42 | | - // Required: |
43 | | - // The prefix map when added/removed when converting URLs <=> paths |
44 | | - // |
45 | 17 | "prefix": "v0", |
46 | | - // |
47 | | - // Optional: |
48 | | - // The icon is the icon to display in the UI for this node |
49 | | - // |
50 | 18 | "icon": "vercel.svg", |
51 | | - // |
52 | | - // Optional: |
53 | | - // Description of this driver |
54 | | - // |
55 | 19 | "description": [ |
56 | 20 | "Generates React UI components from natural-language prompts using Vercel's v0 API.", |
57 | 21 | "Provides generate_ui (create component) and refine_ui (iterate on existing generation)." |
58 | 22 | ], |
59 | | - // |
60 | | - // Optional: |
61 | | - // Tile labels shown on the node in the visual builder |
62 | | - // |
63 | 23 | "tile": ["Tool: v0.generate_ui"], |
64 | | - // |
65 | | - // Optional: |
66 | | - // As a pipe component, define what this pipe component takes |
67 | | - // and what it produces |
68 | | - // |
69 | 24 | "lanes": {}, |
70 | | - // |
71 | | - // Optional: |
72 | | - // Profile section are configuration options used by the driver |
73 | | - // itself |
74 | | - // |
75 | 25 | "preconfig": { |
76 | | - // Define the values that will be merged into any profile configuration |
77 | | - // specified, unless the profile is 'absolute' |
78 | 26 | "default": "default", |
79 | | - // Defines profiles used with the "profile": key |
80 | 27 | "profiles": { |
81 | 28 | "default": { |
82 | 29 | "title": "v0 by Vercel", |
83 | 30 | "apikey": "" |
84 | 31 | } |
85 | 32 | } |
86 | 33 | }, |
87 | | - // |
88 | | - // Optional: |
89 | | - // Local fields definitions - these define fields only for the |
90 | | - // current service. You may specify them here, or directly |
91 | | - // in the shape |
92 | | - // |
93 | 34 | "fields": { |
94 | 35 | "tool_v0.apikey": { |
95 | 36 | "type": "string", |
|
102 | 43 | } |
103 | 44 | } |
104 | 45 | }, |
105 | | - // |
106 | | - // Required: |
107 | | - // Defines the fields (shape) of the service. Either source or target |
108 | | - // may be specified, or both, but at least one is required |
109 | | - // |
110 | 46 | "shape": [ |
111 | 47 | { |
112 | 48 | "section": "Pipe", |
|
0 commit comments