fetch_execution_progress
Check and monitor real-time progress of a running compliance rule execution by polling every second until completion.
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 | |||