Classify Task
classify_taskClassify a user task into a CodexPro task mode and return mode-specific tool policy and misuse guard guidance to enforce safe, workspace-bounded execution.
Instructions
Classify a user task into a CodexPro task mode and return mode-specific tool policy / misuse guard guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_mode | No | Optional explicit task mode override. | |
| instruction | Yes | User task or instruction to classify. | |
| workspace_id | No | Optional workspace id. When omitted, CodexPro binds the authoritative conversation workspace automatically; an explicit unknown or mismatched id is rejected. | |
| requested_tool | No | Optional tool name to check against the classified task mode. | |
| conversation_id | No | Connector conversation id bound to this workspace. Modern MCP injects it automatically; side-effecting tools require it to match the authoritative binding. | |
| patches_requested | No | Set true when a planned run_task/run_stage includes patches. | |
| commands_requested | No | Set true when a planned tool call includes bash/validation commands. | |
| workspace_generation | No | Optional authoritative workspace generation. When omitted, CodexPro injects the conversation-bound generation; an explicit stale generation is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_result | Yes |