add_private_file
Upload a file to this account's Moodle private files area. IRREVERSIBLE once dry_run=False -- no delete tool exists for private files yet, so this permanently adds the file until the user removes it via PLATO's own UI. Only works when this server is running locally (stdio).
Call with dry_run=True (default) first, show the preview to the
user, and only call again with dry_run=False after they explicitly
confirm.
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": {
"file_path": "<file_path>"
},
"name": "add_private_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If True (default), only preview the upload without doing it. Call again with dry_run=False (same parameters) to actually upload it. | |
| file_path | Yes | Local file path to upload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| message | Yes | ||
| preview | Yes | ||
| executed | Yes |