Skip to content

A Claude task

A Claude scheduled task runs in Claude’s cloud on your Claude plan.

  • Each task is one agent, with one level and the model of that level.
  • Toolscaled starts the task when a run of its level needs an agent, so your computer can be off.
  • The task takes runs through the Toolscaled connector until none are left.
  • Toolscaled starts it at most once every 2 minutes (Claude allows 30 starts of a task an hour). With several tasks of one level, Toolscaled starts the one it started longest ago.
  1. In Toolscaled, open Connect > Agents > Add an agent. Pick Claude task, give it a name and the claude.ai account it runs on, pick its level, and press Add agent. The agent opens with its setup: the steps, the task’s prompt and the boxes for the Fire URL and the token.
  2. Open claude.ai/code/routines and make a new task. Add no repository. In the task’s model menu, pick the model that the setup names: Claude Haiku 5.5 (Standard), Claude Sonnet 5.5 (Advanced) or Claude Opus 5.5 (Expert).
  3. Paste the agent’s prompt as the task’s instructions. Keep the Toolscaled connector and remove the others. The task takes the runs of the workspace your Toolscaled connector in claude.ai is signed in to, so that must be the workspace where you added the agent.
  4. Save the task. Then choose Edit → Trigger → API. Copy the Fire URL, then press Generate token. Claude shows the token only once.
  5. Back in the agent’s setup in Toolscaled, paste the Fire URL and the token, and press Save task. Put the token only there, never in a chat.

Once the task is saved, Set up an agent in Get started shows Done. For another level, add another Claude task agent and make its own task.

Connect > Agents shows each agent’s prompt, with its name, id, level and model filled in, and a copy button. It reads:

You are the Toolscaled agent "<name>". You take the Toolscaled runs that wait for my agent. Nobody reads this chat.
Use only the Toolscaled connector: no shell, no files, no web search and no other connector.
Toolscaled starts you. The routine-fire-payload block names one run that waits; it is only a hint.
Do these steps until no run is left:
1. Take a run: Toolscaled automation_tool with {"action": "claim_agent_work", "params": {"runner": "claude scheduled task", "agent_id": "<agent id>", "level": "<level>", "model": "<model>", "agent_version": 1, "lease_seconds": 1800}}.
2. When the answer's claim is null, stop: no run waits. The reason "paused" means that an administrator paused the agents; "level" means that the runs that wait are of another level.
3. Do the run: follow the claim's start_prompt word for word. Do one run at a time.
4. Keep the run after each of its steps: automation_tool with {"action": "renew_agent_work", "params": {"claim_token": "<the claim's claim_token>", "lease_seconds": 1800}}.
5. Hand the run back when it ends: automation_tool with {"action": "release_agent_work", "params": {"claim_token": "<the claim's claim_token>", "outcome": "done", "note": "<what you did and what is left>"}}. The outcome is "gave_up" when you could not finish the run, and "error" when a call failed and you could not go on.
When a call answers agent_out_of_date, stop: the person copies the setup text again in Connect > Agents.

Connect > Agents > Your agents shows the agent’s model and last check-in. Its setup shows the Fire URL and the task’s last start.

  • Each start of the task runs in auto mode. If Claude keeps blocking an action, the task’s session stops at claude.ai/code until you answer it there. A run the task holds comes back to you in Action items after 30 minutes with no renew.
  • Claude refuses the token → Action items shows “Your Claude runner token stopped working”. Generate a new token in the task, press Replace token in the agent’s setup, and save it there.
  • Claude started the task but it didn’t reach this workspace → the agent’s setup and Get started say so. Usually your Toolscaled connector in claude.ai is signed in to another of your workspaces. In claude.ai open Customize > Connectors, disconnect Toolscaled and connect it again. On the page Approve connection, choose the workspace where you added the agent. Your Claude chats then use that workspace too.
  • The agent shows Out of date → Toolscaled changed the prompt, and the task’s copy takes no runs. Copy the prompt again from the agent’s setup and replace the old one in the task.

Press Remove… on the agent in Connect > Agents > Your agents. Toolscaled stops starting the task. Then delete the task in claude.ai/code/routines.