{"at":"2026-11-23T02:47:09.449Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:47:10.034Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:47:10.135Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:47:10.655Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"clawops","version":"2.5.0"}}}}
{"at":"2026-11-23T02:47:10.655Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:47:10.655Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:47:10.660Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get Stack Status"},"description":"Get what is deployed for a clawops-managed stack: public IP, gateway URL,\nSSH user, or that nothing is deployed yet. Reads stack outputs, and asks\nthe host only for requests its host agent left for the operator\n(pendingHandoffs): each is a clawops command to show the user as it is.\nA request clears when that command is run, or after 7 days.\n\nUse when: the user asks what exists for a stack, where to reach it, or\nwhether its agent is waiting on them.\n\nDo NOT use when: the user asks whether the gateway is actually WORKING —\nthat needs the host, so use clawops_doctor. Also not for live logs (use\nclawops_logs_tail) or config values (use clawops_config_get).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Stack name. Defaults to active stack from config.","type":"string"}},"type":"object"},"name":"clawops_status","title":"Get Stack Status"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Run Diagnostics"},"description":"Run clawops's diagnostics and return the report: Node and Pulumi runtime, config,\nSSH key and known_hosts, cloud credentials per configured provider, and the\nsupported OpenClaw range. With stackName, also contacts the host for container\nstate, the deployed OpenClaw version, a real gateway health probe, whether the\nport is published to the internet, disk usage on the state directory, log\nrotation, and hardening drift.\n\nUse when: something is not working and you do not yet know what; before any\ndeploy, upgrade or migration; or to find out which OpenClaw version a gateway is\nactually running.\n\nDo NOT use when: you already know the problem and want to fix it. This tool only\nreports — it changes nothing, and never runs `openclaw doctor --fix`. To move a\ngateway to another version, use clawops_gateway_update after clawops_backup_create.\n\nEvery check carries a status: fail (something is wrong that clawops can name),\nwarn (worth knowing, not broken), info (did not apply). `ok` is false only when\nsomething failed — a fresh machine with no stacks is full of warnings and healthy.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"failuresOnly":{"default":false,"description":"Return only failing and warning checks. Passing checks are counted, not listed.","type":"boolean"},"stackName":{"description":"Stack to include remote checks for. Without it, only the local machine is\nchecked — no SSH connection is made.\n","type":"string"}},"type":"object"},"name":"clawops_doctor","title":"Run Diagnostics"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Tail Gateway Logs"},"description":"Tail recent gateway logs from a clawops-managed instance.\n\nUse when: the user wants to investigate recent activity or errors, or\nasks \"what's been happening\" on the gateway.\n\nDo NOT use when: the user wants real-time streaming logs (those are not\nwell-suited to tool calls; suggest the user run `clawops logs -f` directly\nin their terminal). Do NOT use for instance-level system logs: no tool runs\narbitrary remote commands, so tell the user to run `clawops ssh --command\n'journalctl ...'` themselves.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"sinceMin":{"description":"Lines since N minutes ago","type":"integer"},"stackName":{"description":"Which stack's gateway to read. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"tailLines":{"default":100,"description":"How many of the most recent lines to return. Keep it small; output is trimmed to 8KB regardless","type":"integer"}},"type":"object"},"name":"clawops_logs_tail","title":"Tail Gateway Logs"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Monitor Stack Health"},"description":"Take a live snapshot of a running clawops stack: gateway health, container\nstatus, resource usage (CPU, memory, disk), and recent log lines.\n\nUse when: the user wants to know if the gateway is running, how much\nmemory or CPU it is using, what recent log activity looks like, or\nwants a quick health overview richer than clawops_status.\n\nDo NOT use when: the user wants real-time streaming logs (use\nclawops_logs_tail or suggest `clawops logs -f`). Do NOT use for\nconfiguration queries (use clawops_config_get).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Stack name. Defaults to active stack.","type":"string"},"tailLines":{"default":5,"description":"Log lines to include in snapshot.","type":"integer"}},"type":"object"},"name":"clawops_monitor","title":"Monitor Stack Health"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get OpenClaw Config Value"},"description":"Read a configuration value from the remote OpenClaw gateway.\n\nUse when: the user wants to inspect current OpenClaw config (e.g., which\nmodel provider is active, which channels are enabled).\n\nDo NOT use when: the user wants to change the config — use\nclawops_config_set instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"key":{"description":"Dot-path config key, e.g., gateway.auth.mode. Omit to dump the full config.","type":"string"},"stackName":{"description":"Which stack's gateway config to read. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_config_get","title":"Get OpenClaw Config Value"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List OpenClaw Agents"},"description":"List agents currently registered on the remote OpenClaw gateway.\n\nUse when: the user wants to see which agents are running, debug agent\nrouting, or count active workspaces.\n\nDo NOT use when: the user wants one agent's activity — that is clawops_agents_logs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack's agents to list. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_agents_list","title":"List OpenClaw Agents"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Read One Agent's Activity"},"description":"One agent's recent activity, read from the gateway's audit log, newest last.\nPaginated: pass the returned cursor to continue.\n\nUse when: the user asks what a specific agent did, or why it behaved as it did.\n\nDo NOT use when: the user wants the gateway's own log stream — that is\nclawops_logs_tail. Do NOT use to find agent names — that is clawops_agents_list.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cursor":{"description":"The cursor a previous call returned, to continue from where it stopped. Omitted = the most recent records","type":"string"},"limit":{"default":50,"description":"Maximum activity records to return. Omitted = 50","type":"integer"},"name":{"description":"The agent's name, as clawops_agents_list reports it","type":"string"},"stackName":{"description":"Which stack the agent runs on. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"required":["name"],"type":"object"},"name":"clawops_agents_logs","title":"Read One Agent's Activity"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Gateway Container Status"},"description":"Whether the OpenClaw gateway container is running, when it started, and which image it\nruns, as docker reports it on the host.\n\nUse when: the user asks whether the gateway is up or which OpenClaw version is deployed.\n\nDo NOT use when: the user wants a full health check — clawops_doctor probes the gateway\nitself rather than the container. Do NOT use to change anything; this only reads.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack's gateway to inspect. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_gateway_status","title":"Gateway Container Status"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List Stored Secrets"},"description":"List the secrets clawops stores locally, by name and status. Never returns a value.\n\nUse when: the user asks which secrets are set, or before a deploy that references one.\n\nDo NOT use when: the user wants to set or rotate a secret. No tool does that, because the\nvalue would pass through the conversation (R6): ask the user to run\n`clawops secret set <NAME>` or `clawops secret rotate <NAME>` in a terminal.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{},"type":"object"},"name":"clawops_secret_list","title":"List Stored Secrets"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Audit Secret References"},"description":"Report secrets that stacks reference but clawops does not have, and `$secret:` references\nthat cannot be resolved. Never returns a value.\n\nUse when: a deploy or config change fails on a missing secret, or before applying a plan\nwhose config references secrets.\n\nDo NOT use when: the user wants to set the missing secret — ask them to run\n`clawops secret set <NAME>` in a terminal; no tool takes a secret value (R6).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{},"type":"object"},"name":"clawops_secret_audit","title":"Audit Secret References"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Provision and Deploy Stack"},"description":"Provision and deploy a clawops stack. Idempotent — re-running with no spec\nchange produces no diff. Long-running (median 3min, p99 8min) so emits\nprogress notifications per R12.\n\nUse when: the user explicitly asks to deploy, provision, create, or \"spin\nup\" a stack. Always after the user has reviewed a plan\n(clawops_plan first when in doubt).\n\nDo NOT use when: the user has not yet generated a plan and is in\nexploratory/discovery mode — use clawops_plan first. Do NOT use for an\nexisting stack you only need to update; refresh first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dryRun":{"default":false,"description":"Show what would be created and change nothing. Use this first when the user has not yet approved a spend","type":"boolean"},"gatewayCidr":{"description":"CIDR(s) allowed to reach the gateway port. Requires publishGateway=all.","type":"string"},"instanceType":{"default":"small","description":"A clawops size (micro|small|medium|large|gpu) or a provider-native machine type.\nNot an enum: Azure offers SKU families per subscription, and an account offered\nnone of the five sizes clawops names would otherwise have no way to deploy.\n","type":"string"},"openclawVersion":{"description":"semver or 'stable'/'dev'","type":"string"},"provider":{"description":"Defaults to provider configured for this stack","enum":["aws","gcp","azure","local"],"type":"string"},"publishGateway":{"description":"Which interface the gateway binds. 'all' serves plaintext HTTP.","enum":["loopback","all"],"type":"string"},"region":{"description":"Cloud region to deploy into, in the provider's own spelling (us-east-1, us-central1, eastus). Omitted = the region recorded for the stack","type":"string"},"sshCidr":{"description":"CIDR(s) allowed to reach SSH, comma-separated, or 'auto' for the caller's own\naddress. Omitted means none, and nothing will be able to connect — including\nevery clawops day-two command.\n","type":"string"},"stackName":{"description":"Name for the stack to provision, and the name every later command refers to it by. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_up","title":"Provision and Deploy Stack"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Destroy Stack (DESTRUCTIVE)"},"description":"Destroy a clawops stack. Removes ALL provisioned resources. Triggers\nelicitation confirmation showing the resource diff before execution\n(R19). Cannot be undone.\n\nUse when: the user explicitly asks to destroy, tear down, delete, or\nremove a stack. Always confirm the stack name.\n\nDo NOT use when: the user wants to stop the gateway temporarily — that is not\na destroy, and no tool stops a gateway; clawops_gateway_restart restarts it. Do NOT use when in doubt about which stack; list first with\nclawops_stacks_list.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"The stack to destroy. Required, and worth repeating back to the user before calling: this deletes every resource it provisioned","type":"string"},"yes":{"default":false,"description":"Skip elicitation; CI/scripted use only","type":"boolean"}},"required":["stackName"],"type":"object"},"name":"clawops_destroy","title":"Destroy Stack (DESTRUCTIVE)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Apply Maker Plan"},"description":"Apply a previously-generated Maker plan (deploy-plan.schema.json).\nDeterministic — the plan describes exactly what will be created.\n\nUse when: the user has a plan file path and wants to apply it. This is\nthe agent-friendly path for any deploy/destroy operation.\n\nDo NOT use when: there's no plan file — generate one first with\nclawops_plan.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"planPath":{"description":"Absolute path to plan JSON (R7)","type":"string"},"yes":{"default":false,"description":"Skip the confirmation and apply immediately. Only when the user has already approved this specific plan","type":"boolean"}},"required":["planPath"],"type":"object"},"name":"clawops_apply","title":"Apply Maker Plan"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Generate Deploy Plan"},"description":"Generate a Maker deploy plan (does NOT apply). Plan is JSON conforming to\ndeploy-plan.schema.json — review before applying.\n\nUse when: the user wants to see what would be created before committing,\nor you (the agent) need a reviewable artifact for the user to approve.\n\nDo NOT use when: the user has explicitly asked to deploy and you already\nhave their approval — go directly to clawops_up.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"gatewayCidr":{"description":"CIDR(s) allowed to reach the gateway port, or 'auto'. Requires publishGateway=all","type":"string"},"instanceType":{"description":"A clawops alias (micro|small|medium|large|gpu) or a machine type the cloud names itself, e.g. t3.small","type":"string"},"openclawVersion":{"description":"semver, or 'stable'/'dev'","type":"string"},"outPath":{"description":"Absolute path to write plan; if omitted, plan returned inline","type":"string"},"privateOnly":{"description":"Close public SSH and gateway access; reach the stack over its tailnet. Requires a verified tailnet address (clawops_harden with tailscale), and refuses unless that address answers SSH now","type":"boolean"},"provider":{"description":"Cloud to plan against. Omitted = the provider recorded for the stack. 'local' has no plan/apply path and is refused","enum":["aws","gcp","azure","local"],"type":"string"},"publishGateway":{"description":"Which interface the gateway binds. loopback (default) keeps it off the network","enum":["loopback","all"],"type":"string"},"region":{"description":"Cloud region, in the provider's own spelling (us-east-1, us-central1, eastus). Omitted = the region recorded for the stack","type":"string"},"sshCidr":{"description":"CIDR(s) allowed to reach SSH, comma-separated, or 'auto' for this machine. Omitted = none, and nothing will be able to connect","type":"string"},"stackName":{"description":"Which stack the plan is for. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_plan","title":"Generate Deploy Plan"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Set OpenClaw Config Value"},"description":"Set a configuration value on the remote OpenClaw gateway. Optionally\nrestarts the gateway after.\n\nUse when: the user wants to change OpenClaw configuration (model\nprovider, channel auth, gateway port).\n\nDo NOT use when: the user is reading config — use clawops_config_get.\nDo NOT bulk-edit; one key at a time so changes are auditable (R21).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"key":{"description":"Dotted path into the gateway config, e.g. models.provider or channels.slack.enabled","type":"string"},"restart":{"default":false,"description":"Restart the gateway so the change takes effect. Without it the value is written and the running gateway keeps the old one","type":"boolean"},"stackName":{"description":"Which stack's gateway config to write. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"value":{"description":"Stringified; JSON for complex values","type":"string"}},"required":["key","value"],"type":"object"},"name":"clawops_config_set","title":"Set OpenClaw Config Value"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Unset OpenClaw Config Key"},"description":"Remove a configuration key from the remote OpenClaw gateway config, reverting\nit to the OpenClaw default.\n\nUse when: the user wants to delete a config key entirely (e.g., remove a\nchannel, clear an override).\n\nDo NOT use when: the user wants to set the key to a new value — use\nclawops_config_set instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"key":{"description":"Dot-path config key to remove","type":"string"},"restart":{"default":false,"description":"Restart the gateway so the removal takes effect. Without it the key is removed and the running gateway keeps the old value","type":"boolean"},"stackName":{"description":"Which stack's gateway config to write. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"required":["key"],"type":"object"},"name":"clawops_config_unset","title":"Unset OpenClaw Config Key"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Validate OpenClaw Config"},"description":"Validate the remote OpenClaw gateway config against the known schema. Checks\nfor structural errors (wrong types, unknown top-level keys) that would cause\nOpenClaw to fail on startup.\n\nUse when: the user wants to verify config before restarting the gateway, or\nafter editing openclaw.json manually.\n\nDo NOT use when: the user wants to change config — use clawops_config_set.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack's deployed config to validate. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_config_validate","title":"Validate OpenClaw Config"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Restart Gateway Daemon"},"description":"Restart the OpenClaw gateway daemon on the remote instance.\n\nUse when: a gateway-wide config change requires reload, or the gateway is\nreported as unresponsive.\n\nNote: OpenClaw 2.0 removed per-agent restart; `gateway restart` is the only\nrestart it offers, and it affects every agent on the host. Brief downtime (~10s).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack's gateway to restart. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_gateway_restart","title":"Restart Gateway Daemon"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Update OpenClaw Version"},"description":"Move the gateway to a different OpenClaw version: pull the image and restart the gateway\non it. Every agent on the host restarts with it.\n\nUse when: the user asks to upgrade or downgrade OpenClaw on a running stack, naming a\nversion.\n\nDo NOT use when: the user has not named a concrete version — moving tags such as\n`latest` are refused, as the CLI refuses them. Do NOT use without a backup the user can\nreturn to: suggest clawops_backup_create first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack's gateway to update. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"version":{"description":"A concrete OpenClaw version to move to, e.g. 2026.9.2. Moving tags are refused","type":"string"},"yes":{"default":false,"description":"Skip the confirmation. Only when the user has already approved this specific update","type":"boolean"}},"required":["version"],"type":"object"},"name":"clawops_gateway_update","title":"Update OpenClaw Version"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Back Up Gateway State"},"description":"Take a backup of the gateway's state (config, database, sessions, transcripts and\ninstalled plugins) and download it to a local archive. Live state is not changed.\n\nUse when: the user asks for a backup, and before anything that replaces state: a\nversion update, a migration, a restore, or a plan that replaces the instance.\n\nDo NOT use when: the user wants to back up cloud infrastructure — Pulumi state and plans\ncover that, not this.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"out":{"description":"Absolute local path to write the archive to. Omitted = a timestamped file under ~/.clawops/backups","type":"string"},"stackName":{"description":"Which stack to back up. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_backup_create","title":"Back Up Gateway State"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Restore Gateway State (DESTRUCTIVE with activate)"},"description":"Verify a backup archive and expand it on the host beside the live state, never over it.\nWith activate: true, also put it into service: stop the gateway, swap the restored state\nin (keeping the state it replaces), restart, and roll back if the gateway does not answer.\n\nUse when: the user asks to restore or recover from a backup, naming the archive.\n\nDo NOT use when: the gateway is merely unhealthy — clawops_workflow_recover diagnoses that\nwithout discarding state. Restoring is time travel: everything since the backup is lost,\nand channel credentials may need relinking.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"activate":{"default":false,"description":"Put the restored state into service. Omitted = expand into a staging directory and touch nothing live","type":"boolean"},"file":{"description":"Absolute local path to the backup archive, as clawops_backup_create wrote it","type":"string"},"stackName":{"description":"Which stack to restore onto. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"yes":{"default":false,"description":"Skip the confirmation. Only when the user has already approved this specific restore","type":"boolean"}},"required":["file"],"type":"object"},"name":"clawops_backup_restore","title":"Restore Gateway State (DESTRUCTIVE with activate)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Migrate 1.x to 2.0 (DESTRUCTIVE)"},"description":"Move a deployment from OpenClaw 1.x onto the 2.0 runtime contract: state ownership,\nconfig, and the gateway's run command, in the order a real migration showed works.\n\nUse when: a stack still runs OpenClaw 1.x and the user wants it on 2.x. clawops_doctor\nand clawops_gateway_status say which line a stack runs.\n\nDo NOT use when: the stack is already on 2.x — use clawops_gateway_update to change\nversions within 2.x. Take a backup first with clawops_backup_create.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"openclawVersion":{"description":"The OpenClaw 2.x version to migrate to. Omitted = the version this clawops release defaults to","type":"string"},"stackName":{"description":"Which stack to migrate. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"yes":{"default":false,"description":"Skip the confirmation. Only when the user has already approved this migration","type":"boolean"}},"type":"object"},"name":"clawops_migrate","title":"Migrate 1.x to 2.0 (DESTRUCTIVE)"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Delete a Stored Secret (DESTRUCTIVE)"},"description":"Delete a locally stored secret by name. Warns when a stack still references it.\n\nUse when: the user asks to remove a secret they no longer use.\n\nDo NOT use when: the user wants to replace a value — ask them to run\n`clawops secret rotate <NAME>`; no tool takes a secret value (R6).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"The secret's name, as clawops_secret_list reports it","type":"string"},"yes":{"default":false,"description":"Skip the confirmation. Only when the user has already approved this deletion","type":"boolean"}},"required":["name"],"type":"object"},"name":"clawops_secret_delete","title":"Delete a Stored Secret (DESTRUCTIVE)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Initialise clawops Config"},"description":"Register a stack and write ~/.clawops/config.json: the provider, the state backend, the\nregion, and an SSH key pair generated if one is not already there. Nothing is provisioned\nand nothing is charged; this only creates local configuration.\n\nUse when: any other clawops tool reports that there is no config, or the user wants to add\na second stack alongside the ones they have. This is the first call on a machine that has\nnever run clawops — a fresh container, a new laptop, a sandbox.\n\nAdding a stack is additive and safe: existing stacks are kept. Overwriting one needs\nforce: true, because changing a state backend orphans the Pulumi state it points at — the\ninfrastructure stays up and clawops can no longer see or destroy it.\n\nFor aws, gcp and azure, stateUrl can be omitted and clawops names a bucket from the\naccount it can see; that needs cloud credentials in the environment, so in a sandbox pass\nstateUrl explicitly. The local provider needs host instead, and no cloud account at all.\n\nDo NOT use when: the user wants to deploy — that is clawops_up, after this. Credentials\nare never passed here: clawops reads them from the environment (R6).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"force":{"description":"Overwrite a stack that already exists. Refused without it, because replacing a state backend orphans the state it points at","type":"boolean"},"host":{"description":"[local only] Hostname or IP of the machine to manage. Required when provider is local","type":"string"},"provider":{"description":"Which cloud this stack deploys to, or 'local' for a machine you already have","enum":["aws","gcp","azure","local"],"type":"string"},"region":{"description":"Cloud region in the provider's own spelling. Omitted = us-east-1 (aws), us-central1 (gcp), eastus (azure)","type":"string"},"sshPort":{"description":"[local only] SSH port. Omitted = 22","type":"integer"},"sshUser":{"description":"[local only] SSH login user. Omitted = root","type":"string"},"stackName":{"description":"Name for the stack, used by every later call. Omitted = \"default\"","type":"string"},"stateUrl":{"description":"Where Pulumi state lives, e.g. s3://bucket/clawops, gs://bucket/clawops, azblob://container. Omitted = clawops names one from the cloud account it can see, which needs credentials","type":"string"}},"required":["provider"],"type":"object"},"name":"clawops_init","title":"Initialise clawops Config"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Harden Stack"},"description":"Apply security hardening to a deployed stack: SSH, UFW, fail2ban,\nunattended-upgrades, the Docker socket, and per-cloud checks. Optionally join\nthe stack to a Tailscale network and reach it there instead of over the public\ninternet.\n\nUse when: the user asks to harden, secure, or lock down a stack; asks what the\nhardening report says (with dryRun: true, which changes nothing); or asks to put\na stack on their tailnet.\n\ntailscale: true installs Tailscale, joins the tailnet as clawops-<stack>, and\nthen moves clawops onto that address — but only after opening an SSH session to\nit, against host keys pinned over the connection already trusted. If that fails,\nnothing is recorded and the public address stays in use. The auth key comes from\n`clawops secret set TAILSCALE_AUTH_KEY` and is never passed through this tool\n(R6).\n\ntailscaleRevert: true takes the host back off the tailnet, over its public\naddress. On a private-only stack it refuses and names the plan/apply commands\nthat reopen SSH first — relay them rather than trying to work around it.\n\nTo close the public ports afterwards, plan with privateOnly: true and apply that\nplan; this tool does not change firewall rules.\n\nDo NOT use when: the user wants to know whether a stack is healthy — that is\nclawops_doctor. Do NOT pass tailscale and tailscaleRevert together.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dryRun":{"default":false,"description":"Report the current state, change nothing","type":"boolean"},"options":{"description":"Comma-separated module IDs; default is every defaultOn module for the provider","type":"string"},"stackName":{"description":"Which stack to harden. Omitted = the default stack in ~/.clawops/config.json","type":"string"},"tailscale":{"default":false,"description":"Join the tailnet, verify this machine reaches the host there, then use that address","type":"boolean"},"tailscaleRevert":{"default":false,"description":"Leave the tailnet and go back to the public address","type":"boolean"},"yes":{"default":false,"description":"Skip elicitation; CI/scripted use only","type":"boolean"}},"type":"object"},"name":"clawops_harden","title":"Harden Stack"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Task Status"},"description":"Poll the status of a long-running clawops task (returned by clawops_up,\nclawops_destroy, clawops_apply, etc.). Per R12 streaming model.\n\nUse when: the user is waiting on a long-running deploy/destroy and wants\nprogress, OR you need to check whether a previously-started operation\nfinished.\n\nDo NOT use when: there is no active taskId — start the operation first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"taskId":{"description":"The taskId returned by a long-running tool such as clawops_up, clawops_apply or clawops_destroy","type":"string"}},"required":["taskId"],"type":"object"},"name":"clawops_task_status","title":"Get Task Status"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Deploy OpenClaw (End-to-End Workflow)"},"description":"Single-tool workflow that takes a user from \"I want to deploy OpenClaw\nto <provider>\" to a verified, healthy gateway. Internally: plan → user\nconfirms (elicitation) → up → wait for healthy → return URL.\n\nUse when: the user expresses end-to-end deployment intent (\"deploy to\nAWS\", \"spin up an OpenClaw on GCP for me\").\n\nDo NOT use when: the user is mid-deployment and only needs one step\n(e.g., they already have a plan; use clawops_apply). Do NOT use for\ndestroying or updating — separate workflows.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"instanceType":{"default":"small","description":"Machine size: a clawops alias (micro|small|medium|large|gpu) or a type the cloud names itself, e.g. t3.small","enum":["micro","small","medium","large","gpu"],"type":"string"},"provider":{"description":"Cloud to deploy to. Omitted = the default provider in ~/.clawops/config.json","enum":["aws","gcp","azure","local"],"type":"string"},"region":{"description":"Cloud region, in the provider's own spelling (us-east-1, us-central1, eastus). Omitted = the provider's default","type":"string"},"stackName":{"default":"default","description":"Name for the new stack. Omitted = the default stack name in ~/.clawops/config.json","type":"string"}},"required":["provider"],"type":"object"},"name":"clawops_workflow_deploy_app","title":"Deploy OpenClaw (End-to-End Workflow)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Recover/Diagnose Stack"},"description":"Diagnostic workflow for an unhealthy stack. Internally: what is deployed\n(clawops_status) → the stack's failed health checks (clawops_doctor) → the\ngateway's last 50 log lines (clawops_logs_tail) → a report with next steps that\nname the tool for each kind of failure. Changes nothing.\n\nUse when: the user reports any \"not working\" symptom and you don't know\nwhere to start. Best entry point for troubleshooting.\n\nDo NOT use when: the user has already identified the problem and asks for\na specific fix.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"stackName":{"description":"Which stack to diagnose. Omitted = the default stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_workflow_recover","title":"Recover/Diagnose Stack"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List Stacks"},"description":"List all clawops-managed stacks across all configured providers.\n\nWith fleet: true, also reads every stack's host over SSH and reports its host\nagent: whether one is installed and running, which OpenClaw agent it serves, and,\non a fleet member (ADR 0015), its tag, its peers, its firewall table and its tailnet\nstate. Peers that cannot work are reported on the host that names them: a peer with\nno host agent, one that does not serve peers, one that answers a tag this host does\nnot carry, or one reached by a name it does not have on the tailnet. Same reading as\n`clawops fleet status`. Changes nothing.\n\nOn a host agent: this host and its fleet peers, and whether each peer answered.\nWith fleet: true it reads this host and asks each peer to report itself, then\nchecks them against each other the same way. A peer answers for itself only.\n\nUse when: the user wants an overview of their deployments, asks \"what\nstacks do I have\", or wants to compare stacks before an operation. With\nfleet: true, when they ask which host agents are running, whether the fleet\nis healthy, or why one host agent cannot reach another.\n\nDo NOT use when: the user named a specific stack — use clawops_status\ndirectly with that name. Do NOT pass fleet: true just to list stacks: it\nconnects to every host and takes up to 30 s for one that does not answer.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"fleet":{"default":false,"description":"Also read each stack's host agent and fleet membership over SSH. Off by default: without it nothing leaves this machine","type":"boolean"},"stackNames":{"description":"With fleet: true, read only these stacks, comma-separated. Omitted = every stack in ~/.clawops/config.json","type":"string"}},"type":"object"},"name":"clawops_stacks_list","title":"List Stacks"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Forget a Stack (DESTRUCTIVE)"},"description":"Remove a stack from ~/.clawops/config.json. This forgets the stack; it does not tear\ndown its infrastructure, and it refuses a stack that is still deployed unless forced.\n\nUse when: the user wants to stop tracking a stack whose resources are already gone.\n\nDo NOT use when: the user wants the infrastructure removed — that is clawops_destroy,\nfirst. Forcing the delete of a deployed stack leaves resources running and billing that\nclawops can no longer see.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"force":{"default":false,"description":"Skip the safety checks: allow deleting the default stack, or one still deployed. Omitted = refuse both","type":"boolean"},"name":{"description":"The stack to remove from config, as clawops_stacks_list reports it","type":"string"},"yes":{"default":false,"description":"Skip the confirmation. Only when the user has already approved this deletion","type":"boolean"}},"required":["name"],"type":"object"},"name":"clawops_stacks_delete","title":"Forget a Stack (DESTRUCTIVE)"}]}}}
