Delegate a subtask to GLM
glm_delegateHandle text-only subtasks via GLM subagent for reduced cost. Provide complete context in the task description since file access is unavailable.
Instructions
Text-in/text-out subtask on GLM (~10x cheaper than Opus); returns text only. GLM has no file/tool access -- put everything in task+context. For file edits use glm_agent instead. Not for sensitive, long-debugging, large-refactor, or parallel work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The instruction for GLM. Be explicit and self-contained, e.g. 'Write a React component that...'. | |
| model | No | Model id or 'auto' (default). e.g. glm-5.2, glm-4.7, glm-4.5-air. 'auto' picks peak-aware. | |
| format | No | concise (default) or detailed metadata. | |
| system | No | Optional system prompt to steer GLM's role/format. | |
| context | No | Supporting material GLM needs: code to modify, file contents, specs, examples. GLM has no file access. | |
| thinking | No | Enable GLM reasoning mode for harder tasks (slower). Default false. | |
| max_tokens | No | Max output tokens (ceiling; billed for actual). Default generous. |