refactor: unify tool reason requirements
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { toolReason } from "../tool-reason.js";
|
||||
import { tool } from "../tool.js";
|
||||
import { getInternalBridgeConfig } from "../internalBridge.js";
|
||||
|
||||
@@ -10,7 +11,7 @@ export default tool({
|
||||
"workbench_runtime", "scada_devices", "scada_readings", "peripheral_points",
|
||||
"peripheral_work_orders", "peripheral_observations", "peripheral_test_data",
|
||||
])).min(1),
|
||||
reason: tool.schema.string().min(1),
|
||||
reason: toolReason.describe("One concise sentence explaining which evidence gap requires the requested data access."),
|
||||
},
|
||||
async execute(args, context) {
|
||||
const { baseUrl, internalToken } = getInternalBridgeConfig();
|
||||
|
||||
Reference in New Issue
Block a user