Run a portal action
run_portal_actionRuns a portal action as the person, exactly as if they did it in Timeclock.Kiwi. Reading runs straight away. Everyday changes are saved straight away. Risky changes (deleting, permissions, pay rates, settings, publishing, notifying staff, anything billed) are not made yet: you get a confirm_url for the person to open and confirm, then call check_confirmation.
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": {
"action_id": "<action_id>"
},
"name": "run_portal_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The action's body, as describe_portal_action shows it | |
| query | No | The action's query parameters | |
| summary | No | For changes: one or two plain sentences saying what this will do, naming the people, dates and things involved. The person sees it when confirming. | |
| action_id | Yes | An action_id from search_portal_actions | |
| path_params | No | Values for the action's path_params |