QA workflows
Before a run, open http://localhost:5098/config directly on the lab PC (adjust the port), change modules and gates, save, then confirm Restart service. Restart interrupts active work; reconnect at the new local URL if you changed the listener. The page exposes credentials and privileged settings to local users without a token and must never be proxied.
Treat the lab PC as a remote pair of hands. The agent installs the build, puts the machine in the state the case needs, captures evidence, and pulls the files back. Features lists every area. Security says which of these stay off until you opt in.
Install and uninstall a build
list_installed_software/get_installed_softwareto see what is already there and whether a silent uninstall exists.- Drop the new MSI or setup package into a write root, or
fetch_fileit from an HTTP(S) URL or UNC share as a background job. For a fetch, pollwait_jobuntil the job is no longerRunning, and startrun_processonly if the state isSucceeded. run_process(Processes is opt-in) to install. Usewaitorwait_job/read_job_outputto watch the exit code.- After the run,
uninstall_softwarewithdryRunfirst, then for real. Silent uninstall stays off untilSoftware:AllowUninstallis true. MSI, Burn, Inno Setup, NSIS, and quiet-uninstall strings are supported. Per-user entries and AppX/MSIX packages are not.
Toggle devices
Use the Devices module when the case needs a driver stack, a filter, or a device that is present or not.
find_devices/get_deviceto locate the instance ID.enable_device,disable_device, orrestart_device.- Install or uninstall a package with
install_driver/uninstall_driverwhen the build under test is a driver. WhenrebootRequiredis true, callreboot_machineifSystem:AllowRebootis on, or restart the PC yourself.
Screenshot the failure
- Enable Desktop. Screenshots, window placement, display-layout changes, and managed test desktops stay off until their gates are true.
list_windowsandlist_displaysto find the window or monitor.inspect_windowadds the client rectangle, frame insets, DPI context, and per-field errors.take_screenshotof the desktop, one display, one window, or a region. The MCP image is for the agent and may not appear in chat. Passshare: trueand give the person the returned URL; it shows the downscaled preview once and then expires. PasssaveToin a write root when the full-resolution PNG must be kept; that result includes a one-time download link when tokens are configured. Do not usefetch_fileto export the image.start_window_event_capturefollows one process or window. Read it withread_window_event_capture. A pid filter includes later windows from that process and does not include child processes. Stop it withstop_window_event_capture. Closing the chat does not stop it.- To move a test window, set
Desktop:AllowWindowPlacementand callset_window_client_rectwithsavePlacement: true.achievedis true only when the measured client rectangle matches.restore_window_placementuses the returned token. - To test a display mode, set
Desktop:AllowDisplayLayoutChanges, callsnapshot_display_layout, thenstart_display_layout_transactionwithpersistent: false.observe_display_layout_transactionwaits for stable geometry.restore_display_layout_transactionputs the original topology back. Do not disconnect and assume the layout returned; the lease does that. While a managed desktop is active, pass itsdesktopSessionIdtosnapshot_display_layoutandstart_display_layout_transaction; Windows refuses display changes from any other desktop. These tools do not create a virtual display.get_virtual_display_backendreportscanCreate: falseand the missing Vestigo backend prerequisite.create_virtual_displayreturnsvirtual_display_backend_unavailableand leaves the topology alone.set_window_client_rectandrestore_window_placementacceptdesktopSessionIdfor a managed desktop without activating it. - To isolate a test app, set
Desktop:AllowDesktopSessions, callcreate_desktop_session, thenactivate_desktop_sessionbeforerun_processwith thatdesktopSessionIdandcontext: interactive.list_windowsandinspect_windowcan use the id before activation.take_screenshotof the desktop,inspect_input_state, andsend_inputreturnunsupported_on_inactive_desktopuntil the session is the input desktop.send_inputinjection.statussubmittedmeans Windows accepted the events.rejectedandpartialare strict-focus stops.injection.timingis the helper’s own submission interval.response.statusobservedmeans a later capture changed.restore_desktop_sessionorclose_desktop_sessionreturns the console user to the desktop recorded at creation.fail-if-runningrefuses to close while a process launched into the session is still alive. Lease expiry, cancellation, and service restart useterminate-owned.
The lock screen and UAC secure desktop fail with desktop_unavailable. A console user must be logged on.
See whether the machine slept
get_power_statereports AC, battery charging, approximate last sleep and wake times, and whether the platform supports modern standby.get_sleep_configurationreports the lid-close action and the standby timeout on AC and on battery. A null value was not returned. A timeout of 0 means never.get_last_wake_sourcereads the newest Power-Troubleshooter resume event.eventFound: falsemeans that event is absent. The wake-source type is a number, not a device verdict.- Fast Startup configuration is
get_boot_statefastStartupEnabled. That setting does not prove the previous boot was hybrid.
Why a screenshot failed
list_logon_sessionsshows every session, which one is the console, and which one interactive tools would use (isCurrentInput).- A disconnected session can still have a user and still not be the console.
includeDisconnectedis true by default. Listener rows such asRDP-Tcpstay hidden unlessincludeListenersis true. get_logon_sessionadds token elevation and local Administrators membership when Windows allows the token to be opened. A missing token leaves those fields null.- Client name and address stay null unless
includeClientAddressesis true. They are not written to the Vestigo log. - The error includes
reason:nobody_logged_on,only_disconnected_sessions,session_0_only, orconsole_session_has_no_token.probe_capture_supportand user-scope environment keepuser_not_availableand include the samereason.
Drive the UI
- Enable Desktop and Input, then set
Desktop:AllowScreenshotsandInput:AllowInputto true. Both are off by default. inspect_screenreturns an annotated image, a numbered element list and acaptureId.send_inputwith thatcaptureIdand anelementId(orx,yfrom the image) clicks that point. Atypeaction ignoreselementIdand sends text to the focused field, so click the field first. PassfocusWindowfromlist_windowswhen the batch should start with that window.requireFocus: truerefuses the batch unless that window is foreground immediately before each submission, including after a wait.injection.statusrejectedmeans nothing was submitted.partialmeans the batch stopped after some events and released keys or buttons it still held.focusActualis the window from that check. Calls on one input desktop do not overlap.submittedmeansSendInputaccepted the events. Windows can still change focus before the call returns, and a click hits the window under the pointer.injection.timinggives UTC plusQueryPerformanceCounterticks, as decimal strings, for the first and last accepted submission on that host. It does not include the laterobservewait. Setobserve: trueto add the next view to the same call when that capture succeeds and the batch was not rejected. When the actions ran and the capture failed, the result hasperformedandobserveErrorand no new view. Read those fields before calling again, because another call repeats the actions.observeMode: "pixels"skips OCR and UI Automation and reports only whether pixels changed, andobserveCropX,observeCropY,observeCropWidthandobserveCropHeightwithobserveWindowHandlelimit both captures to a window-relative region; the crop never moves the input.find_on_screenlocates text or an image template when the element list is not enough.- For a window target,
inspect_screenacceptscropX,cropY,cropWidthandcropHeighttogether, in physical pixels relative to the window. The result addseffectiveCropandwindowBounds, and a crop outside the window fails withempty_region.diffAgainststill compares two captures of the same target, area and preview scale (for example two full-desktop captures), and also accepts the same crop of the same window after it moves. Incompatible captures fail withcapture_mismatch. - A
typeaction can setinputModetokeysto send virtual keys from the receiving window’s keyboard layout. It fails withunsupported_character,modifier_held,layout_changedorcaps_lock_changedand cannot type dead keys or IME text. Those mid-action failures are tool errors with noinjectionresult, and earlier actions in the call may already have been sent.
Input cannot reach a UAC prompt on the secure desktop, the lock screen, or Ctrl+Alt+Del. A prompt on the interactive desktop, used when secure-desktop prompting is off, is reachable. Elevated windows need elevated: true.
Close an application
- Enable Processes and Jobs, then call
close_app. It postsWM_CLOSEand never kills. - Read each process outcome:
exited,stillRunning, orunknown.unknownmeans the check failed and is not success.verificationErrorandpidReusedmean the pid may now belong to a different process. - Use
kill_processonly when the case needs a forced stop.
Restart or sign in
reboot_machineneedsSystem:AllowReboot. UsedryRunfirst,delaySecondsfor a countdown thatcancel_rebootcan abort, andforceonly when losing unsaved work is acceptable. An immediate restart drops your MCP session.- After a restart,
get_interactive_logon_statusshows whether the console is at the logon screen or locked. WithSystem:AllowInteractiveLogonand the Credential Provider registered,request_interactive_logon(orrequest_unlock_workstationfor a locked console) returns a consent URL. Give that URL to a person to open in a desktop browser, then pollget_logon_request. Onlogonui_not_connected, wake the lock screen and retry.lock_workstationlocks the console and needs only the gate. request_autologon_enableworks the same way and needsSystem:AllowAutoLogonChanges.get_autologon_statereports it anddisable_autologonremoves it.
Query event logs
list_event_logsto see which channels are enabled.query_event_logonApplication,System, or an.evtxfile under a read root. Filter by provider, level, event id, or time range.
The Security channel follows Windows ACLs for the service account.
Switch an audio endpoint
- Enable Audio.
list_audio_endpointsshows playback and recording devices, volume, and which process is using them. set_default_audio_endpointstays off untilAudio:AllowSetDefaultis true. Use it when a case needs a specific headset or HDMI output as the default device.
The service context does not see user-session audio. Per-app overrides in Settings are not changed.
Diagnose a slow VM or stuttering I/O
- Enable Performance. It needs Jobs.
get_vm_environmentandget_storage_topologyto see hypervisor vendor, paravirt versus emulated disks, and 512e versus 4K native.list_filesystem_minifiltersto see AV/EDR/sync filters.list_network_filtersto see NDIS Lightweight Filters and WFP callouts.sample_performance_counterswith presetstorage,overview,network, ornetwork_rssfor queue length, disk service times, and NIC RSS imbalance.probe_scheduler_jitterfor steal/preemption spikes while utilization looks idle.capture_kernel_latency_summarystays off untilPerformance:AllowKernelTraceis true. Include groupnetworkfor per-process send/receive/retransmit counts.record_wpr_tracestays off untilPerformance:AllowRawEtlCaptureis true.probe_storage_latencystays off untilPerformance:AllowStorageProbesis true and the directory is in a write root.capture_packet_dropsstays off untilPerformance:AllowPacketDropCaptureis true and returns drop-reason counts, not payloads.
List kernel dumps
- Enable Diagnostics. It needs Jobs.
list_kernel_dumpsreturnsMEMORY.DMP, the dedicated dump file, and minidumps that exist. File names and a small header prefix are included. Dump bytes and bugcheck fields are not.stage_kernel_dumpstays off untilDiagnostics:AllowKernelDumpStagingis true. Pass an id from the list and a new.dmppath in a write root. The result contains the length and SHA-256. A finished copy includes a one-time download ticket when that root also has Read access.
Read a crash and take a dump
- Enable Diagnostics, Processes, and Jobs. Processes is opt-in and needs Jobs; Diagnostics needs Jobs too.
list_crash_reportsreturns Windows Error Reporting metadata for the machine, a user, or both. Dump bytes and the raw report file are not included. list_processesand keep the start time of the process you will dump.capture_process_dumpstays off untilDiagnostics:AllowProcessDumpsis true. Pass thatexpectedStartTimeand a new.dmppath in a write root. The dump is not uploaded and no download ticket is created. Protected processes and processes on the fixed refusal list are refused.
Explain a driver load failure
- Enable Diagnostics, and Services and EventLog when those facts should be included. Diagnostics needs Jobs. Device queries work while Devices is off.
explain_driver_load_failuretakes an instance id, a service name, or both.- Confirm hypotheses cite a service, a signature outcome, or a Code Integrity event. HVCI and Windows lockdown mode are observations.
insufficientEvidencemeans no load-failure signal was observed. The tool does not assert a cause.
Read firewall policy
- Enable Diagnostics. It needs Jobs.
get_firewall_profilesandlist_firewall_rulesstay off untilDiagnostics:AllowFirewallInventoryis true.- Confirm the profile bitmask and raw rule expressions come back, and that neither tool reports a connection as blocked by the firewall.
Check a lab endpoint
- Enable Diagnostics and set
Diagnostics:AllowNetworkProbesto true. - Add the host, or the host and port, to
Diagnostics:AllowedProbeDestinations. The installer does not write that list. test_endpointwithdns,tcp,tls, orudp. A UDPsentresult does not prove the peer is reachable.stun: truesends one STUN binding request; a missing response is not a firewall block.probe_network_latencyandprobe_network_pathsend ICMP or TCP samples to the same allow-list; hop addresses stay omitted unless requested. The probe uses Vestigo’s own network context and does not capture packets.
Read a registry value
- Enable Registry. It is off by default.
read_registry_valuewith a path such asHKLM\SYSTEM\CurrentControlSet\Servicesandviewregistry64.HKCUmeans the console user.- A path outside the allow list is
path_not_allowed. Winlogon, Lsa, SAM, and SECURITY arepath_deniedeven if you allow a parent. AddHKLM\SOFTWARE\<Vendor>\<Product>toRegistry:AllowedPrefixeswhen the built-in locations are not enough. That replaces the built-in list.
Investigate Windows Update and servicing
-
Enable WindowsServicing and Jobs in the installer feature tree or configuration:
{ "Vestigo": { "Modules": { "WindowsServicing": { "Enabled": true }, "Jobs": { "Enabled": true } } } }Restart the Vestigo service after configuration changes, and use a token for remote access. This module is separate from Vestigo’s Updates self-updater.
- Call
get_reboot_pendingandlist_pending_file_operations. Keep the source states and malformed-pair warnings: unknown is not the same as no reboot pending. - Use
get_windows_update_statusandget_update_historyfor WUA status and recent outcomes.get_update_failure_detailsaccepts a literal KB, update ID, HRESULT or text filter and an earliest time. It collects a bounded history window, warning/error events and CBS/DISM log tails. Matching text does not prove causation; log timestamps are not parsed by the time filter. list_windows_updatesstarts an offline inventory job.list_servicing_packagesstarts a DISM package inventory job; it normally needs elevation. Usewait_joband pagedread_job_outputto read their JSON results. WUA history may have been reset and is not a complete installed-package inventory. Run the inventory jobs one at a time: wait for the first job to finish before starting the next. Ifwait_jobreturns Running, continue waiting; its wait timeout does not stop the job. A native diagnostic timeout can leave Windows work running even after the job fails. Wait before retryingservicing_busy.get_servicing_statusshows CBS and pending-file metadata without an integrity check.get_update_storage_statusshows volume space and fixed-file metadata, without recursive cache totals or a WinSxS allocation estimate.
WindowsServicing adds no roots of its own. Check the existing roots before
collecting logs: a fresh MSI install defaults to FixedVolumes with Read, Write
and Execute access, so the paths may already be covered. Both
get_servicing_logs and the log tails in get_update_failure_details need Read
access to the fixed logs under %windir%\Logs. Add a Read root only if those
paths are not already covered. get_file_lockers likewise needs the selected
file in a Read root and returns best-effort Restart Manager results without
stopping processes. Raw registry queue paths can be returned outside Read roots,
but queued files are not opened. Read Security first.
The module does not install updates, repair Windows, clear queues or reboot. Offline applicability work can still update WUA’s cache or logs. Timeout or job cancellation stops waiting rather than aborting native Windows work, and its concurrency slot stays occupied until that work finishes.
Collect logs and traces
tail_text_fileorread_text_file_sincefor a growing log under a read root.search_textwhen you need a regex across a directory tree without pulling every file. Use it for line-oriented NDJSON too.get_json_summaryorread_json_pathfor one UTF-8 JSON snapshot. A query such as$.statusor$.items[*]returns typed values; it does not filter or walk every descendant.start_capture/read_captureorconvert_etlfor WPP.observe_presentationis a separate bounded read of DXGI, DWM, and DxgKrnl and returns unknown unless an event explicitly identifies the presentation mode.get_download_urlor the ticket on a conversion result pulls the file back without pasting the API token into the client.
Keep the intro connection steps nearby: the MSI writes the token into ProgramData, and / in a browser repeats the same instructions.
Plugin validation
The server tests publish real plugin fixtures and exercise shared contract identity, private dependency versions, manifest and trust rejection, dependency graphs, HTTP authentication and MCP discovery/echo invocation. Service restart and MSI upgrade preservation need an elevated deployment smoke test. See the plugin deployment checklist.
API 1.1 tests use a separately published, fake provider plugin to verify schemas and rich content, live catalog changes, disabled modules, prefix conflicts, authenticated owner/session isolation and service disposal over the actual MCP HTTP endpoint. No Playwright backend or browser is needed for these tests. Providers must separately test their own backend leases, concurrency and cleanup.