set_class_visibility
Show or hide classes for staff, parents, and students. Make newly created classes visible to enable posting, or hide them by section IDs and optional date.
Instructions
Show or hide classes for staff, parents, and students. Requires PS_ENABLE_WRITES.
Newly created classes start hidden, so a class made with add_class needs this before anyone can see or post to it. Hidden classes are not visible to staff, parents, or students.
Args: school_id: School ID section_ids: Class/section IDs to update (from list_classes) visible: True to make the classes visible, False to hide them date: Optional YYYY-MM-DD date the change takes effect; defaults to today
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": {
"school_id": "<school_id>",
"section_ids": "<section_ids>",
"visible": "<visible>"
},
"name": "set_class_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| visible | Yes | ||
| school_id | Yes | ||
| section_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |