n8n-nodes-test-node 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,11 +14,19 @@ npm install n8n-nodes-test-node
14
14
 
15
15
  ## What was generated
16
16
 
17
- - Node type(s) in this package: **gitHubV3RESTAPI**.
18
- - 34 resource(s), 1038 operation(s).
17
+ - Node type(s) in this package: **gitHubV3RESTAPI**, **gitHubV3RESTAPITool** (AI Agent tool).
18
+ - 34 resource(s), 1038 operation(s) (identical parameter set on the regular and tool nodes -- they share the same credential and routing, differing only in identity and how they present themselves).
19
19
  - Credential type **gitHubV3RESTAPIApi**, with an editable **Base URL** field, plus: no auth fields (the spec declared no security requirements).
20
20
  - Default Base URL: `{protocol}://{hostname}/api/v3` (override it in the credential's "Base URL" field to point at a different environment)
21
21
 
22
+ ## Using the AI Agent tool node
23
+
24
+ This package includes a node with `usableAsTool: true` set, so it can be attached directly to an n8n **AI Agent** node's tool list.
25
+
26
+ **This requires the n8n instance itself to allow it** -- community-node tools are opt-in at the instance level. Set the environment variable `N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true` on the n8n server (not on this package), then restart n8n, before the tool node will show up as available to an Agent. This also requires a reasonably recent n8n version (the AI Agent / LangChain tool-node support is a relatively recent addition to n8n).
27
+
28
+ Once installed and enabled, add an **AI Agent** node to your workflow, and this tool will be selectable in its tools list, using the same operations and fields as the regular node -- an Agent can choose the resource/operation and fill in parameters itself.
29
+
22
30
  ## Limitations
23
31
 
24
32
  - Only OpenAPI 3.x is supported.
@@ -0,0 +1,4 @@
1
+ import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class GitHubV3RESTAPIToolNode implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }