build_server_memory
Probe enabled server modules over SSH and cache the results to create a fresh memory snapshot for a managed instance. Use when memory is missing or a full rescan 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 | host_key_verification_failed | ssh_connection_failed). If reason='all_probers_failed' the failures list explains per-module (usually an SSH reachability / auth problem — fix that before retrying). host_key_verification_failed and ssh_connection_failed mean nothing reached the server and the stored memory was kept; 'message' says why.
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>'. |