You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/wsh-reference.mdx
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -857,4 +857,42 @@ The command will show you the full path to:
857
857
Use the `-t` flag with the log path to quickly view recent log entries without having to open the full file. This is particularly useful for troubleshooting.
858
858
:::
859
859
860
+
---
861
+
862
+
## blocks
863
+
864
+
The `blocks`command provides operations for listing and querying blocks across workspaces, windows, and tabs. Primarily useful for debugging and scripting.
865
+
866
+
### list
867
+
868
+
```sh
869
+
wsh blocks list [flags]
870
+
```
871
+
872
+
List all blocks with optional filtering by workspace, window, tab, or view type. Output can be formatted as a table (default) or JSON for scripting.
873
+
874
+
Flags:
875
+
- `--workspace <id>` - restrict to specific workspace id
876
+
- `--window <id>` - restrict to specific window id
877
+
- `--tab <id>` - restrict to specific tab id
878
+
- `--view <type>` - filter by view type (term, web, preview, edit, sysinfo, waveai)
879
+
- `--json` - output results as JSON
880
+
- `--timeout <ms>` - RPC timeout in milliseconds (default: 5000)
881
+
882
+
Examples:
883
+
884
+
```sh
885
+
# List all blocks
886
+
wsh blocks list
887
+
888
+
# List only terminal blocks
889
+
wsh blocks list --view=term
890
+
891
+
# Filter by workspace
892
+
wsh blocks list --workspace=12d0c067-378e-454c-872e-77a314248114
0 commit comments