/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install forguncy-web-operator - After installation, invoke the skill by name or use
/forguncy-web-operator - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 244 downloads so far.
How do I install Operate Web Apps Built by Forguncy (aka 活字格)?
Run "/install forguncy-web-operator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Operate Web Apps Built by Forguncy (aka 活字格) free?
Yes, Operate Web Apps Built by Forguncy (aka 活字格) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Operate Web Apps Built by Forguncy (aka 活字格) support?
Operate Web Apps Built by Forguncy (aka 活字格) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Operate Web Apps Built by Forguncy (aka 活字格)?
It is built and maintained by 宁伟 (@kadbbz); the current version is v1.0.2.