@naturali/sdk 0.224.0 → 0.225.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.
- package/dist/index.cjs +13 -0
- package/dist/index.d.cts +237 -24
- package/dist/index.d.mts +237 -24
- package/dist/index.mjs +13 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5902,6 +5902,19 @@ var Tools = class {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
});
|
|
5904
5904
|
}
|
|
5905
|
+
/**
|
|
5906
|
+
* List a tool's actions
|
|
5907
|
+
*
|
|
5908
|
+
* Lists the actions an `mcp` tool exposes, read from its server's `tools/list` with the tool's `mcp.headers` resolved server-side: each action's `name`, `description` and `input_schema`, as a model bound to the tool sees them. `actions` and `denied_actions` apply, and a `preset_parameters` key an action's schema declares is removed from that schema. Other tool types are `400`. The server answers its whole listing in one call; `limit` and `cursor` page what it returned, in its order.
|
|
5909
|
+
* Authorized as a call (`tools:CallTool`), since listing reaches the tool's server with its credential.
|
|
5910
|
+
*
|
|
5911
|
+
*/
|
|
5912
|
+
static listToolActions(options) {
|
|
5913
|
+
return (options.client ?? client).get({
|
|
5914
|
+
url: "/v1/projects/{project_id}/tools/{tool_id}/actions",
|
|
5915
|
+
...options
|
|
5916
|
+
});
|
|
5917
|
+
}
|
|
5905
5918
|
};
|
|
5906
5919
|
var Traces = class {
|
|
5907
5920
|
/**
|