fetch_execution_progress
Monitor compliance rule execution progress by polling for real-time updates. Track task-level progress bars and detect completion using continue_polling flags to know when execution finishes.
Instructions
Fetch execution progress for a running rule.
IMPORTANT FOR CLAUDE/CLIENT:
This tool returns a snapshot of current progress. To see real-time updates:
Call this tool repeatedly every 1 seconds
Check the "continue_polling" flag in response
If continue_polling=true, call again after 1 seconds
If continue_polling=false, execution is complete
DISPLAY INSTRUCTIONS FOR CLAUDE:
When displaying progress, REPLACE the previous output (don't append):
š Execution Progress (Live) āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Show each task on ONE line that UPDATES in place: ⢠task_name (type) [progress_bar] XX% STATUS
Use these Unicode blocks for progress bars:
COMPLETED: š¦ (blue blocks)
INPROGRESS: š© (green blocks)
ERROR: š„ (red blocks)
PENDING: ⬠(white blocks)
After each poll, REPLACE the entire progress display with new data. DO NOT show multiple versions of the same task.
EXAMPLE DISPLAY SEQUENCE: Poll 1: ⢠fetch_users (HTTP) ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0% PENDING ⢠process_data (Script) ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0% PENDING
Poll 2 (REPLACES above): ⢠fetch_users (HTTP) š©š©š©š©ā¬ā¬ā¬ā¬ā¬ā¬ 40% INPROGRESS ⢠process_data (Script) ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 0% PENDING
Poll 3 (REPLACES above): ⢠fetch_users (HTTP) š¦š¦š¦š¦š¦š¦š¦š¦š¦š¦ 100% COMPLETED ⢠process_data (Script) š©š©š©ā¬ā¬ā¬ā¬ā¬ā¬ā¬ 30% INPROGRESS
RESPONSE FLAGS:
continue_polling: true = keep polling every 1 seconds
continue_polling: false = execution complete, show final summary
display_mode: "replace" = replace previous display
UI DISPLAY REQUIREMENT:
The file URL must ALWAYS be displayed to the user in the UI, allowing the user to view or download the file directly.
Args: rule_name: Rule being executed execution_id: ID from execute_rule()
Returns: Dict with progress data and polling instructions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_name | Yes | ||
| execution_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||