refactor(agent)!: focus tools on SCADA
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { tool } from "@opencode-ai/plugin";
|
||||
import { callServerApiTool } from "./server_api_shared.js";
|
||||
|
||||
export default tool({
|
||||
description:
|
||||
"列出当前项目可查询的 SCADA 资产。无请求参数;返回 assets 数组,包含 assets[].scada_id、external_id、site_external_id、name、kind、active。后续查询读数时必须使用 assets[].scada_id 作为 query_scada_readings.asset_ids;不要使用 GeoServer feature id/fid。",
|
||||
args: {},
|
||||
execute: (args, context) =>
|
||||
callServerApiTool("list_scada_assets", args, context.sessionID),
|
||||
});
|
||||
Reference in New Issue
Block a user