rulvar API reference / @rulvar/core / CanUseTool
Type Alias: CanUseTool
ts
type CanUseTool = (toolName, input, ctx) =>
| "allow"
| "deny"
| {
modifiedInput: unknown;
}
| Promise<
| "allow"
| "deny"
| {
modifiedInput: unknown;
}>;Defined in: packages/core/src/runtime/permission-chain.ts:42
Parameters
| Parameter | Type |
|---|---|
toolName | string |
input | unknown |
ctx | ToolContext |
Returns
| "allow" | "deny" | { modifiedInput: unknown; } | Promise< | "allow" | "deny" | { modifiedInput: unknown; }>