Publish Sheet View
view.publishPublish a view as a read-only page (an app holding the view), viewable by anyone with the link unless public is false. Needs Admin access on the view's sheet. Confirm with the user before calling it. Returns the page's path. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returns status: "pending_approval"; nothing changes until they approve. Pass reason (and targetNotes per target) so the approver sees why.
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": {
"viewId": "<viewId>"
},
"name": "view.publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public | No | true: anyone with the link can view it. false: only members who have access. | |
| reason | No | Why you are doing this, in one sentence the approver reads if Ask first holds the call | |
| viewId | Yes | The view to publish (from sheet.schema) | |
| targetNotes | No | A short note per target, keyed by the id or Index you pass |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Path of the published page, on the org's panel domain | |
| appId | No | ||
| public | No | ||
| status | No | The call waits for a person's approval; nothing has changed | |
| created | No | false when the view was already published and was reused | |
| message | No | ||
| approver | No | Who decides it | |
| approvalId | No | The approval the call waits on |