build_server_memory
Generate a fresh server memory snapshot by probing all enabled modules over SSH and caching results. Use when cached memory is missing or a full re-scan is needed.
Instructions
Build memory from scratch for a managed instance — probes all enabled modules (OS, runtimes, services, web stack, logs, etc.) over SSH and writes the results to the local cache. Call this when get_server_memory returns code='missing', or when you want a fresh full scan. Returns JSON with: instance_id, count (successful modules), successes (list of module names), failures (list of {module, reason, message}), and — when count=0 — an overall 'reason' code (opt_out | disabled | no_modules_matched | all_probers_failed). If reason='all_probers_failed' the failures list explains per-module (usually an SSH reachability / auth problem — fix that before retrying).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modules | No | Module names to probe (e.g. ['os', 'runtimes']). Omit to probe all enabled modules. | |
| instance_id | Yes | Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'. |