@caplets/core 0.11.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.
- package/dist/generated-tool-input-schema.js +64 -0
- package/dist/index.js +5661 -0
- package/dist/native.js +92 -0
- package/dist/tools-BlFF20vE.js +57396 -0
- package/package.json +63 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region src/generated-tool-input-schema.mjs
|
|
2
|
+
const operations = [
|
|
3
|
+
"get_caplet",
|
|
4
|
+
"check_backend",
|
|
5
|
+
"check_mcp_server",
|
|
6
|
+
"list_tools",
|
|
7
|
+
"search_tools",
|
|
8
|
+
"get_tool",
|
|
9
|
+
"call_tool"
|
|
10
|
+
];
|
|
11
|
+
const generatedToolInputDescriptions = {
|
|
12
|
+
operation: [
|
|
13
|
+
"Caplets wrapper operation to perform for this configured Caplet backend.",
|
|
14
|
+
"Use get_caplet to read the full Caplet card, check_backend to check any backend, check_mcp_server to check an MCP backend, list_tools or search_tools to discover downstream tools, get_tool to read a downstream input schema, and call_tool to run one downstream tool, operation, action, or CLI command.",
|
|
15
|
+
"For call_tool, pass downstream inputs only inside the top-level \"arguments\" object."
|
|
16
|
+
].join(" "),
|
|
17
|
+
query: "Required only for search_tools. Example: {\"operation\":\"search_tools\",\"query\":\"web search\",\"limit\":5}. Do not use query for call_tool; put downstream query values under arguments.query.",
|
|
18
|
+
limit: "Optional only for search_tools; defaults to the configured search limit. For downstream result limits, use call_tool.arguments with the downstream schema field name.",
|
|
19
|
+
tool: "Exact downstream tool name for get_tool or call_tool. Example: {\"operation\":\"get_tool\",\"tool\":\"web_search_exa\"} before calling it.",
|
|
20
|
+
arguments: "Required JSON object only for call_tool. Put every downstream tool input inside this object. Example: {\"operation\":\"call_tool\",\"tool\":\"web_search_exa\",\"arguments\":{\"query\":\"latest MCP docs\",\"numResults\":3}}. Do not send downstream inputs as top-level query, limit, url, path, or other fields.",
|
|
21
|
+
fields: "Optional for call_tool after get_tool shows outputSchema on a non-GraphQL tool. Example: fields: [\"path.to.field\"]."
|
|
22
|
+
};
|
|
23
|
+
function generatedToolInputJsonSchema() {
|
|
24
|
+
return {
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
operation: {
|
|
28
|
+
type: "string",
|
|
29
|
+
enum: operations,
|
|
30
|
+
description: generatedToolInputDescriptions.operation
|
|
31
|
+
},
|
|
32
|
+
query: {
|
|
33
|
+
type: "string",
|
|
34
|
+
description: generatedToolInputDescriptions.query
|
|
35
|
+
},
|
|
36
|
+
limit: {
|
|
37
|
+
type: "integer",
|
|
38
|
+
minimum: 1,
|
|
39
|
+
description: generatedToolInputDescriptions.limit
|
|
40
|
+
},
|
|
41
|
+
tool: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: generatedToolInputDescriptions.tool
|
|
44
|
+
},
|
|
45
|
+
arguments: {
|
|
46
|
+
type: "object",
|
|
47
|
+
description: generatedToolInputDescriptions.arguments
|
|
48
|
+
},
|
|
49
|
+
fields: {
|
|
50
|
+
type: "array",
|
|
51
|
+
items: {
|
|
52
|
+
type: "string",
|
|
53
|
+
minLength: 1
|
|
54
|
+
},
|
|
55
|
+
minItems: 1,
|
|
56
|
+
description: generatedToolInputDescriptions.fields
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
required: ["operation"],
|
|
60
|
+
additionalProperties: false
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { generatedToolInputDescriptions, generatedToolInputJsonSchema, operations };
|