@dexto/tools-builtins 1.9.8 → 1.10.1

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 (31) hide show
  1. package/dist/implementations/ask-user-tool.cjs +1 -0
  2. package/dist/implementations/ask-user-tool.d.ts.map +1 -1
  3. package/dist/implementations/ask-user-tool.js +2 -0
  4. package/dist/implementations/delegate-to-url-tool.cjs +1 -0
  5. package/dist/implementations/delegate-to-url-tool.d.ts.map +1 -1
  6. package/dist/implementations/delegate-to-url-tool.js +7 -1
  7. package/dist/implementations/exa-code-search-tool.cjs +1 -0
  8. package/dist/implementations/exa-code-search-tool.d.ts.map +1 -1
  9. package/dist/implementations/exa-code-search-tool.js +7 -1
  10. package/dist/implementations/exa-web-search-tool.cjs +1 -0
  11. package/dist/implementations/exa-web-search-tool.d.ts.map +1 -1
  12. package/dist/implementations/exa-web-search-tool.js +7 -1
  13. package/dist/implementations/get-resource-tool.cjs +1 -0
  14. package/dist/implementations/get-resource-tool.d.ts.map +1 -1
  15. package/dist/implementations/get-resource-tool.js +2 -0
  16. package/dist/implementations/http-request-tool.cjs +1 -0
  17. package/dist/implementations/http-request-tool.d.ts.map +1 -1
  18. package/dist/implementations/http-request-tool.js +7 -1
  19. package/dist/implementations/invoke-skill-tool.cjs +1 -0
  20. package/dist/implementations/invoke-skill-tool.d.ts.map +1 -1
  21. package/dist/implementations/invoke-skill-tool.js +2 -1
  22. package/dist/implementations/list-resources-tool.cjs +1 -0
  23. package/dist/implementations/list-resources-tool.d.ts.map +1 -1
  24. package/dist/implementations/list-resources-tool.js +2 -1
  25. package/dist/implementations/read-skill-tool.cjs +1 -0
  26. package/dist/implementations/read-skill-tool.d.ts.map +1 -1
  27. package/dist/implementations/read-skill-tool.js +2 -1
  28. package/dist/implementations/sleep-tool.cjs +1 -0
  29. package/dist/implementations/sleep-tool.d.ts.map +1 -1
  30. package/dist/implementations/sleep-tool.js +2 -1
  31. package/package.json +3 -3
@@ -72,6 +72,7 @@ function createAskUserTool() {
72
72
  description: 'Collect structured input from the user through a form interface. ONLY use this tool when you need: 1) Multiple fields at once (e.g., name + email + preferences), 2) Pre-defined options/choices (use enum for dropdowns like ["small","medium","large"]), 3) Specific data types with validation (boolean for yes/no, number for quantities). DO NOT use for simple conversational questions - just ask those naturally in your response. This tool is for form-like data collection, not chat. Examples: collecting user profile info, configuration settings, or selecting from preset options.',
73
73
  inputSchema: AskUserInputSchema,
74
74
  presentation: {
75
+ activity: import_tools.TOOL_ACTIVITY.askUser,
75
76
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
76
77
  title: "Ask",
77
78
  argsText: (0, import_tools.truncateForHeader)(input.question, 140)
@@ -1 +1 @@
1
- {"version":3,"file":"ask-user-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/ask-user-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,kBAAkB;;;;;;;kBAiCX,CAAC;AAiCd;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAiCnE"}
1
+ {"version":3,"file":"ask-user-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/ask-user-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,kBAAkB;;;;;;;kBAiCX,CAAC;AAiCd;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAkCnE"}
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import {
3
3
  ToolError,
4
+ TOOL_ACTIVITY,
4
5
  createLocalToolCallHeader,
5
6
  defineTool,
6
7
  truncateForHeader
@@ -54,6 +55,7 @@ function createAskUserTool() {
54
55
  description: 'Collect structured input from the user through a form interface. ONLY use this tool when you need: 1) Multiple fields at once (e.g., name + email + preferences), 2) Pre-defined options/choices (use enum for dropdowns like ["small","medium","large"]), 3) Specific data types with validation (boolean for yes/no, number for quantities). DO NOT use for simple conversational questions - just ask those naturally in your response. This tool is for form-like data collection, not chat. Examples: collecting user profile info, configuration settings, or selecting from preset options.',
55
56
  inputSchema: AskUserInputSchema,
56
57
  presentation: {
58
+ activity: TOOL_ACTIVITY.askUser,
57
59
  describeHeader: (input) => createLocalToolCallHeader({
58
60
  title: "Ask",
59
61
  argsText: truncateForHeader(input.question, 140)
@@ -151,6 +151,7 @@ function createDelegateToUrlTool() {
151
151
  description: 'Delegate a task to another A2A-compliant agent at a specific URL. Supports STATEFUL multi-turn conversations via sessionId parameter. USAGE: (1) First delegation: provide url + message. Tool returns a response AND a sessionId. (2) Follow-up: use the SAME sessionId to continue the conversation with that agent. The agent remembers previous context. EXAMPLE: First call {url: "http://agent:3001", message: "Analyze data X"} returns {sessionId: "xyz", response: "..."}. Second call {url: "http://agent:3001", message: "What was the top insight?", sessionId: "xyz"}. The agent will remember the first analysis and can answer specifically.',
152
152
  inputSchema: DelegateToUrlInputSchema,
153
153
  presentation: {
154
+ activity: import_tools.TOOL_ACTIVITY.delegate,
154
155
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
155
156
  title: "Delegate",
156
157
  argsText: (0, import_tools.truncateForHeader)(`${input.url} ${input.message}`, 140)
@@ -1 +1 @@
1
- {"version":3,"file":"delegate-to-url-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/delegate-to-url-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAIpE,QAAA,MAAM,wBAAwB;;;;;kBA0BjB,CAAC;AAsJd;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CA+C/E"}
1
+ {"version":3,"file":"delegate-to-url-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/delegate-to-url-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AASpE,QAAA,MAAM,wBAAwB;;;;;kBA0BjB,CAAC;AAsJd;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAgD/E"}
@@ -1,6 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { DextoRuntimeError, ErrorScope, ErrorType } from "@dexto/core/errors";
3
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
3
+ import {
4
+ TOOL_ACTIVITY,
5
+ createLocalToolCallHeader,
6
+ defineTool,
7
+ truncateForHeader
8
+ } from "@dexto/core/tools";
4
9
  const DelegateToUrlInputSchema = z.object({
5
10
  url: z.string().url().describe(
6
11
  'The A2A-compliant agent URL (e.g., "http://localhost:3001" or "https://agent.example.com"). The tool will automatically append the correct JSON-RPC endpoint.'
@@ -128,6 +133,7 @@ function createDelegateToUrlTool() {
128
133
  description: 'Delegate a task to another A2A-compliant agent at a specific URL. Supports STATEFUL multi-turn conversations via sessionId parameter. USAGE: (1) First delegation: provide url + message. Tool returns a response AND a sessionId. (2) Follow-up: use the SAME sessionId to continue the conversation with that agent. The agent remembers previous context. EXAMPLE: First call {url: "http://agent:3001", message: "Analyze data X"} returns {sessionId: "xyz", response: "..."}. Second call {url: "http://agent:3001", message: "What was the top insight?", sessionId: "xyz"}. The agent will remember the first analysis and can answer specifically.',
129
134
  inputSchema: DelegateToUrlInputSchema,
130
135
  presentation: {
136
+ activity: TOOL_ACTIVITY.delegate,
131
137
  describeHeader: (input) => createLocalToolCallHeader({
132
138
  title: "Delegate",
133
139
  argsText: truncateForHeader(`${input.url} ${input.message}`, 140)
@@ -36,6 +36,7 @@ function createCodeSearchTool() {
36
36
  description: "Search for code examples and documentation across sources like official docs, GitHub, and Stack Overflow. Returns formatted text context.",
37
37
  inputSchema: CodeSearchInputSchema,
38
38
  presentation: {
39
+ activity: import_tools.TOOL_ACTIVITY.searchCode,
39
40
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
40
41
  title: "Code Search",
41
42
  argsText: (0, import_tools.truncateForHeader)(input.query, 140)
@@ -1 +1 @@
1
- {"version":3,"file":"exa-code-search-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/exa-code-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,qBAAqB;;;kBAiBd,CAAC;AACd;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA4BzE"}
1
+ {"version":3,"file":"exa-code-search-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/exa-code-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,qBAAqB;;;kBAiBd,CAAC;AACd;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA6BzE"}
@@ -1,5 +1,10 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
2
+ import {
3
+ TOOL_ACTIVITY,
4
+ createLocalToolCallHeader,
5
+ defineTool,
6
+ truncateForHeader
7
+ } from "@dexto/core/tools";
3
8
  import { callExaTool } from "./exa-mcp.js";
4
9
  const CodeSearchInputSchema = z.object({
5
10
  query: z.string().min(1).describe(
@@ -13,6 +18,7 @@ function createCodeSearchTool() {
13
18
  description: "Search for code examples and documentation across sources like official docs, GitHub, and Stack Overflow. Returns formatted text context.",
14
19
  inputSchema: CodeSearchInputSchema,
15
20
  presentation: {
21
+ activity: TOOL_ACTIVITY.searchCode,
16
22
  describeHeader: (input) => createLocalToolCallHeader({
17
23
  title: "Code Search",
18
24
  argsText: truncateForHeader(input.query, 140)
@@ -39,6 +39,7 @@ function createWebSearchTool() {
39
39
  description: "Search the web for current information and return clean, ready-to-use text. Use for news, facts, and up-to-date context.",
40
40
  inputSchema: WebSearchInputSchema,
41
41
  presentation: {
42
+ activity: import_tools.TOOL_ACTIVITY.searchWeb,
42
43
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
43
44
  title: "Web Search",
44
45
  argsText: (0, import_tools.truncateForHeader)(input.query, 140)
@@ -1 +1 @@
1
- {"version":3,"file":"exa-web-search-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/exa-web-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;kBA8Bb,CAAC;AACd;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CA+BvE"}
1
+ {"version":3,"file":"exa-web-search-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/exa-web-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;kBA8Bb,CAAC;AACd;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAgCvE"}
@@ -1,5 +1,10 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
2
+ import {
3
+ TOOL_ACTIVITY,
4
+ createLocalToolCallHeader,
5
+ defineTool,
6
+ truncateForHeader
7
+ } from "@dexto/core/tools";
3
8
  import { callExaTool } from "./exa-mcp.js";
4
9
  const WebSearchInputSchema = z.object({
5
10
  query: z.string().min(1).describe("Web search query"),
@@ -16,6 +21,7 @@ function createWebSearchTool() {
16
21
  description: "Search the web for current information and return clean, ready-to-use text. Use for news, facts, and up-to-date context.",
17
22
  inputSchema: WebSearchInputSchema,
18
23
  presentation: {
24
+ activity: TOOL_ACTIVITY.searchWeb,
19
25
  describeHeader: (input) => createLocalToolCallHeader({
20
26
  title: "Web Search",
21
27
  argsText: truncateForHeader(input.query, 140)
@@ -37,6 +37,7 @@ function createGetResourceTool() {
37
37
  description: 'Access a stored resource. Use format "url" to get a shareable URL for other agents or external systems (requires remote storage like Supabase). Use format "metadata" to get resource information without loading data. References can be obtained from tool result annotations or list_resources.',
38
38
  inputSchema: GetResourceInputSchema,
39
39
  presentation: {
40
+ activity: import_tools.TOOL_ACTIVITY.readResource,
40
41
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
41
42
  title: "Get Resource",
42
43
  argsText: (0, import_tools.truncateForHeader)(
@@ -1 +1 @@
1
- {"version":3,"file":"get-resource-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/get-resource-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,sBAAsB;;;;;;kBAgBf,CAAC;AAEd;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAiH3E"}
1
+ {"version":3,"file":"get-resource-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/get-resource-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,sBAAsB;;;;;;kBAgBf,CAAC;AAEd;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAkH3E"}
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import {
3
3
  ToolError,
4
+ TOOL_ACTIVITY,
4
5
  createLocalToolCallHeader,
5
6
  defineTool,
6
7
  truncateForHeader
@@ -19,6 +20,7 @@ function createGetResourceTool() {
19
20
  description: 'Access a stored resource. Use format "url" to get a shareable URL for other agents or external systems (requires remote storage like Supabase). Use format "metadata" to get resource information without loading data. References can be obtained from tool result annotations or list_resources.',
20
21
  inputSchema: GetResourceInputSchema,
21
22
  presentation: {
23
+ activity: TOOL_ACTIVITY.readResource,
22
24
  describeHeader: (input) => createLocalToolCallHeader({
23
25
  title: "Get Resource",
24
26
  argsText: truncateForHeader(
@@ -289,6 +289,7 @@ function createHttpRequestTool() {
289
289
  description: "Make a direct HTTP request using fetch. Supports method, headers, query params, JSON bodies, and timeouts. Returns status, headers, raw body text, and parsed JSON when available.",
290
290
  inputSchema: HttpRequestInputSchema,
291
291
  presentation: {
292
+ activity: import_tools.TOOL_ACTIVITY.requestHttp,
292
293
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
293
294
  title: "Fetch",
294
295
  argsText: (0, import_tools.truncateForHeader)(input.url, 140)
@@ -1 +1 @@
1
- {"version":3,"file":"http-request-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/http-request-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAGpE,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAKnF,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;kBA2Bf,CAAC;AA8Bd,KAAK,cAAc,GACb,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAC9E,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC,CAAC;AAoDhF,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE;IACtC,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,CAAC;CACjC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAyI/E;AA2FD;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAuG3E"}
1
+ {"version":3,"file":"http-request-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/http-request-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAQpE,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAKnF,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;kBA2Bf,CAAC;AA8Bd,KAAK,cAAc,GACb,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAC9E,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC,CAAC;AAoDhF,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE;IACtC,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,CAAC;CACjC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,CAyI/E;AA2FD;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAwG3E"}
@@ -1,6 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { DextoRuntimeError, ErrorScope, ErrorType } from "@dexto/core/errors";
3
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
3
+ import {
4
+ TOOL_ACTIVITY,
5
+ createLocalToolCallHeader,
6
+ defineTool,
7
+ truncateForHeader
8
+ } from "@dexto/core/tools";
4
9
  import { promises as dns } from "node:dns";
5
10
  import { isIP } from "node:net";
6
11
  import { TextDecoder } from "node:util";
@@ -265,6 +270,7 @@ function createHttpRequestTool() {
265
270
  description: "Make a direct HTTP request using fetch. Supports method, headers, query params, JSON bodies, and timeouts. Returns status, headers, raw body text, and parsed JSON when available.",
266
271
  inputSchema: HttpRequestInputSchema,
267
272
  presentation: {
273
+ activity: TOOL_ACTIVITY.requestHttp,
268
274
  describeHeader: (input) => createLocalToolCallHeader({
269
275
  title: "Fetch",
270
276
  argsText: truncateForHeader(input.url, 140)
@@ -36,6 +36,7 @@ function createInvokeSkillTool() {
36
36
  description: buildToolDescription(),
37
37
  inputSchema: InvokeSkillInputSchema,
38
38
  presentation: {
39
+ activity: import_tools.TOOL_ACTIVITY.useSkill,
39
40
  describeHeader: (input) => {
40
41
  const colonIndex = input.skill.indexOf(":");
41
42
  const displaySkillName = colonIndex >= 0 ? input.skill.slice(colonIndex + 1) : input.skill;
@@ -1 +1 @@
1
- {"version":3,"file":"invoke-skill-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/invoke-skill-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAapE,QAAA,MAAM,sBAAsB;;;;kBAiBf,CAAC;AAEd,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAgD3E"}
1
+ {"version":3,"file":"invoke-skill-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/invoke-skill-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAapE,QAAA,MAAM,sBAAsB;;;;kBAiBf,CAAC;AAEd,wBAAgB,qBAAqB,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAiD3E"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
2
+ import { TOOL_ACTIVITY, ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
3
3
  const InvokeSkillInputSchema = z.object({
4
4
  skill: z.string().min(1, "Skill name is required").describe(
5
5
  'The name of the skill to invoke (e.g., "plugin-name:skill-name" or "skill-name")'
@@ -13,6 +13,7 @@ function createInvokeSkillTool() {
13
13
  description: buildToolDescription(),
14
14
  inputSchema: InvokeSkillInputSchema,
15
15
  presentation: {
16
+ activity: TOOL_ACTIVITY.useSkill,
16
17
  describeHeader: (input) => {
17
18
  const colonIndex = input.skill.indexOf(":");
18
19
  const displaySkillName = colonIndex >= 0 ? input.skill.slice(colonIndex + 1) : input.skill;
@@ -36,6 +36,7 @@ function createListResourcesTool() {
36
36
  description: "List available resources (images, files, etc.). Returns resource references that can be used with get_resource to obtain shareable URLs or metadata. Filter by source (tool/user) or kind (image/audio/video/binary).",
37
37
  inputSchema: ListResourcesInputSchema,
38
38
  presentation: {
39
+ activity: import_tools.TOOL_ACTIVITY.listResources,
39
40
  describeHeader: (input) => {
40
41
  const parts = [];
41
42
  if (input.source && input.source !== "all") parts.push(`source=${input.source}`);
@@ -1 +1 @@
1
- {"version":3,"file":"list-resources-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/list-resources-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;kBAoBjB,CAAC;AAYd;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CA4F/E"}
1
+ {"version":3,"file":"list-resources-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/list-resources-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;kBAoBjB,CAAC;AAYd;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CA6F/E"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
2
+ import { TOOL_ACTIVITY, ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
3
3
  const ListResourcesInputSchema = z.object({
4
4
  source: z.enum(["all", "tool", "user"]).optional().default("all").describe(
5
5
  'Filter by source: "tool" for tool-generated resources, "user" for user-uploaded, "all" for both'
@@ -13,6 +13,7 @@ function createListResourcesTool() {
13
13
  description: "List available resources (images, files, etc.). Returns resource references that can be used with get_resource to obtain shareable URLs or metadata. Filter by source (tool/user) or kind (image/audio/video/binary).",
14
14
  inputSchema: ListResourcesInputSchema,
15
15
  presentation: {
16
+ activity: TOOL_ACTIVITY.listResources,
16
17
  describeHeader: (input) => {
17
18
  const parts = [];
18
19
  if (input.source && input.source !== "all") parts.push(`source=${input.source}`);
@@ -33,6 +33,7 @@ function createReadSkillTool() {
33
33
  description: "Read skill instructions or a file from a skill bundle. This is read-only and does not invoke the skill.",
34
34
  inputSchema: ReadSkillInputSchema,
35
35
  presentation: {
36
+ activity: import_tools.TOOL_ACTIVITY.readSkill,
36
37
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
37
38
  title: "Read Skill",
38
39
  argsText: input.path ? `${input.skill}/${input.path}` : input.skill
@@ -1 +1 @@
1
- {"version":3,"file":"read-skill-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/read-skill-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAapE,QAAA,MAAM,oBAAoB;;;kBAKb,CAAC;AAEd,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAwDvE"}
1
+ {"version":3,"file":"read-skill-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/read-skill-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAapE,QAAA,MAAM,oBAAoB;;;kBAKb,CAAC;AAEd,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAyDvE"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
2
+ import { TOOL_ACTIVITY, ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
3
3
  const ReadSkillInputSchema = z.object({
4
4
  skill: z.string().min(1, "Skill name is required"),
5
5
  path: z.string().min(1).optional()
@@ -10,6 +10,7 @@ function createReadSkillTool() {
10
10
  description: "Read skill instructions or a file from a skill bundle. This is read-only and does not invoke the skill.",
11
11
  inputSchema: ReadSkillInputSchema,
12
12
  presentation: {
13
+ activity: TOOL_ACTIVITY.readSkill,
13
14
  describeHeader: (input) => createLocalToolCallHeader({
14
15
  title: "Read Skill",
15
16
  argsText: input.path ? `${input.skill}/${input.path}` : input.skill
@@ -32,6 +32,7 @@ function createSleepTool() {
32
32
  description: "Pause execution for a specified number of milliseconds.",
33
33
  inputSchema: SleepInputSchema,
34
34
  presentation: {
35
+ activity: import_tools.TOOL_ACTIVITY.pause,
35
36
  describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
36
37
  title: "Sleep",
37
38
  argsText: `${input.ms}ms`
@@ -1 +1 @@
1
- {"version":3,"file":"sleep-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/sleep-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,gBAAgB;;kBAST,CAAC;AAEd;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAkB/D"}
1
+ {"version":3,"file":"sleep-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/sleep-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,gBAAgB;;kBAST,CAAC;AAEd;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAmB/D"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
2
+ import { TOOL_ACTIVITY, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
3
3
  const SleepInputSchema = z.object({
4
4
  ms: z.number().int().positive().max(6e5).describe("Milliseconds to sleep (max 10 minutes)")
5
5
  }).strict();
@@ -9,6 +9,7 @@ function createSleepTool() {
9
9
  description: "Pause execution for a specified number of milliseconds.",
10
10
  inputSchema: SleepInputSchema,
11
11
  presentation: {
12
+ activity: TOOL_ACTIVITY.pause,
12
13
  describeHeader: (input) => createLocalToolCallHeader({
13
14
  title: "Sleep",
14
15
  argsText: `${input.ms}ms`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-builtins",
3
- "version": "1.9.8",
3
+ "version": "1.10.1",
4
4
  "description": "Built-in tools factory for Dexto agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "dependencies": {
20
20
  "undici": "^7.24.6",
21
21
  "zod": "^4.3.6",
22
- "@dexto/agent-config": "1.9.8",
23
- "@dexto/core": "1.9.8"
22
+ "@dexto/agent-config": "1.10.1",
23
+ "@dexto/core": "1.10.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "tsup": "^8.0.0",