Put a change live
publish_taskAsks to put a finished task's change live on the project's site, as its Publish button does. The task must be ready to try. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. Once approved there is still a 30 second window to undo it on the task's page.
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": {
"task_id": "<task_id>",
"reason": "<reason>"
},
"name": "publish_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| task_id | Yes | The task whose change goes live (list_tasks gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |