/install forguncy-web-operator
Forguncy Web Operations (forguncy-web-operator)
This skill allows you to extract data and headers from SpreadJS tables within the web applications built by Forguncy (aka 活字格).
How to use
The following JavaScript snippets can be executed in the browser context using the browser.act tool with kind: "evaluate" to retrieve data from a SpreadJS table.
Dynamically Get Table Name (fgcname)
First, you need to identify the fgcname of the SpreadJS table. You can find this by inspecting the DOM or using a JavaScript snippet like this to find elements with fgc-uielement="listview" and extract their fgcname:
(function() {
const listViews = document.querySelectorAll('[fgc-uielement="listview"]');
let fgcNames = [];
listViews.forEach(lv => {
if (lv.hasAttribute('fgcname')) {
fgcNames.push(lv.getAttribute('fgcname'));
}
});
return fgcNames;
})()
Once you have the fgcname (e.g., "表格1"), you can use it in the following functions.
Get Table Data
To get the full table data in CSV format (rows separated by '\r', columns by ','), replace YOUR_TABLE_FGCNAME with the actual fgcname you found:
(function() {
const tableName = "YOUR_TABLE_FGCNAME"; // Replace with the actual fgcname, e.g., "表格1"
var sheet = Forguncy.Page.getListView(tableName).getControl().getActiveSheet();
return sheet.getCsv(0,0,sheet.getRowCount(), sheet.getColumnCount(),"\r",",");
})()
Get Column Headers
To get the column headers, assuming there are 2 header rows (adjust headerRowCount if necessary), replace YOUR_TABLE_FGCNAME with the actual fgcname:
(function() {
const tableName = "YOUR_TABLE_FGCNAME"; // Replace with the actual fgcname, e.g., "表格1"
var sheet = Forguncy.Page.getListView(tableName).getControl().getActiveSheet();
var headerRowCount = sheet.getRowCount(GC.Spread.Sheets.SheetArea.colHeader);
var headers = [];
for (let r = 0; r \x3C headerRowCount; r++) {
var rowHeaders = [];
for (let c = 0; c \x3C sheet.getColumnCount(); c++) {
rowHeaders.push(sheet.getValue(r, c, GC.Spread.Sheets.SheetArea.colHeader));
}
headers.push(rowHeaders);
}
return headers;
})()
Remember to pass the targetId obtained from a browser.open or browser.snapshot call when executing these scripts.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install forguncy-web-operator - 安装完成后,直接呼叫该 Skill 的名称或使用
/forguncy-web-operator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Operate Web Apps Built by Forguncy (aka 活字格) 是什么?
Provides functionality to interact with SpreadJS tables in the web applications built by Forguncy (aka 活字格), specifically for extracting table data and colum... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。
如何安装 Operate Web Apps Built by Forguncy (aka 活字格)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install forguncy-web-operator」即可一键安装,无需额外配置。
Operate Web Apps Built by Forguncy (aka 活字格) 是免费的吗?
是的,Operate Web Apps Built by Forguncy (aka 活字格) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Operate Web Apps Built by Forguncy (aka 活字格) 支持哪些平台?
Operate Web Apps Built by Forguncy (aka 活字格) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Operate Web Apps Built by Forguncy (aka 活字格)?
由 宁伟(@kadbbz)开发并维护,当前版本 v1.0.2。