@asterism-app/builtin-api 0.24.0 → 0.25.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asterism-app/builtin-api",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Public domain contracts and extensions for Asterism built-in features",
5
5
  "license": "MIT",
6
6
  "author": "Chien Zhang",
package/src/tools.ts CHANGED
@@ -18,6 +18,17 @@ export const List = defineTool({
18
18
  argsSchema: z.strictObject({}).describe("Empty parameter object."),
19
19
  });
20
20
 
21
+ export const Metadata = defineTool({
22
+ id: builtin.name("tool.metadata"),
23
+ name: "metadata",
24
+ description: "Read metadata for the selected target.",
25
+ guidelines: [
26
+ "target selects an entry according to the resource implementation's schema. args is an empty object.",
27
+ "The resource implementation defines the metadata fields and their meaning.",
28
+ ],
29
+ argsSchema: z.strictObject({}).describe("Empty parameter object."),
30
+ });
31
+
21
32
  export const Read = defineTool({
22
33
  id: builtin.name("tool.read"),
23
34
  name: "read",