Inspect Mesh State
inspect_mesh_stateQuery multi-agent mesh state read-only to review contracts, progress, outputs, patches, diagnostics, and failure causes without database write locks or row changes.
Instructions
Strictly read-only query of contracts, execution progress, outputs, proposal patches, diagnostic counters, and failure causes.
Purpose
Provides comprehensive observability into the multi-agent mesh state without acquiring database write locks or mutating rows.
Behavior & Side Effects
Zero side effects: Pure read-only SELECT query against local SQLite WAL. Never alters rows or triggers sweeps.
Pass include_patch=true to expand raw git_patch and proposed_patch payloads (omitted by default to conserve context tokens).
Return Value
Returns { total_returned, contracts: Array<{ contract_id, requester_agent, target_agent, task_type, write_mode, title, status, is_logically_expired, created_at, claimed_at, completed_at, proposal_applied_at, retry_count, extend_count, release_count, toctou_strike, result_summary, structured_output, artifacts_pointers, proposed_patch_sha256, proposed_patch_bytes, proposed_patch?, error_reason, salvaged_result, verified_sha256 }> }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inspect_mesh_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of records to return (default: 10) | |
| status | No | Filter by status (default: ALL) | |
| contract_id | No | Optional specific contract_id to inspect single contract details, counters, errors, and output payloads. | |
| target_agent | No | Optional filter by target worker agent identifier (e.g., "workbuddy") to view pending or completed queue items. | |
| include_patch | No | When true, includes the raw git_patch and proposed_patch strings in each inspected contract (default: false to avoid large inline responses). |