name: code-mate-openclaw
description: Runs a local OpenClaw agent non-interactively and returns its structured response. Use when the user asks to delegate a bounded task to the OpenClaw main agent.
OpenClaw
Run
- Set the Bash working directory to the exact directory the user authorized and set a finite outer timeout, normally 11 minutes.
- Check availability with
command -v openclaw. If it is missing, stop and ask the user to install OpenClaw in Code Mate.
- Run the local main agent once:
openclaw agent --local --agent main --message "<prompt>" --json --timeout 600