add_tool_view
Adds an HTML tool as a custom view tab on a database or sheet so it renders live filtered rows with read/write access; use it after building a card layout or chart.
Instructions
Show an HTML tool as a Custom view tab of a database or sheet: the tool renders that data's live rows (await hillnote.data() -> rows() follows the view's filters/search/sort; add/update/remove write back). Use after building a tool for a specific database/sheet (a card layout, an HTML chart…). Pass exactly one of database or sheet. Appends { type: "tool", toolPath } to its views and makes it the open view; the user approves the tool's access to the data once, in the app.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspacePath": "<workspacePath>"
},
"name": "add_tool_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | Name (or folder name) of the sheet to add the view to | |
| category | No | Optional category where the tool is located | |
| database | No | Name (or folder name) of the database to add the view to | |
| toolName | No | The tool's folder name under resources/html/ | |
| toolPath | No | Alternative to toolName: the tool folder or its entry file, relative to the workspace root | |
| viewName | No | Tab name (default: the tool's name) | |
| workspacePath | Yes | Absolute path to the workspace directory |