louissoume commited on
Commit
5627b3c
·
verified ·
1 Parent(s): 6732cea

HuggingMes sync [r-louissoume-hugging-hermes-hd5lyba1-005c9-jfrtk] 2026-05-12T15:35:33Z

Browse files
.local/share/tirith/last_trigger.json CHANGED
@@ -1,23 +1,10 @@
1
  {
2
  "rule_ids": [
3
- "lookalike_tld",
4
  "lookalike_tld"
5
  ],
6
  "severity": "MEDIUM",
7
- "command_redacted": "curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:...",
8
  "findings": [
9
- {
10
- "rule_id": "lookalike_tld",
11
- "severity": "MEDIUM",
12
- "title": "Lookalike TLD detected",
13
- "description": "Domain uses '.dev' TLD which can be confused with file extensions",
14
- "evidence": [
15
- {
16
- "type": "url",
17
- "raw": "baggy-hatchery-savanna.ngrok-free.dev"
18
- }
19
- ]
20
- },
21
  {
22
  "rule_id": "lookalike_tld",
23
  "severity": "MEDIUM",
@@ -31,5 +18,5 @@
31
  ]
32
  }
33
  ],
34
- "timestamp": "2026-05-12T15:24:20.160094349+00:00"
35
  }
 
1
  {
2
  "rule_ids": [
 
3
  "lookalike_tld"
4
  ],
5
  "severity": "MEDIUM",
6
+ "command_redacted": "curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok...",
7
  "findings": [
 
 
 
 
 
 
 
 
 
 
 
 
8
  {
9
  "rule_id": "lookalike_tld",
10
  "severity": "MEDIUM",
 
18
  ]
19
  }
20
  ],
21
+ "timestamp": "2026-05-12T15:31:01.895394813+00:00"
22
  }
.local/share/tirith/log.jsonl CHANGED
@@ -13,3 +13,8 @@
13
  {"timestamp":"2026-05-12T15:24:04.699611663+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"a09bcb6f-24a5-4110-bf17-793b9393211f","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
14
  {"timestamp":"2026-05-12T15:24:17.533615646+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 77 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"9afdd9a2-8941-44a6-bcb9-af473e9d4798","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
15
  {"timestamp":"2026-05-12T15:24:20.154388772+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld","lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 289 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"4f15d5ef-f7fc-425b-b8cb-fc5f30a6c1c3","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld","lookalike_tld"]}
 
 
 
 
 
 
13
  {"timestamp":"2026-05-12T15:24:04.699611663+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"a09bcb6f-24a5-4110-bf17-793b9393211f","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
14
  {"timestamp":"2026-05-12T15:24:17.533615646+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 77 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"9afdd9a2-8941-44a6-bcb9-af473e9d4798","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
15
  {"timestamp":"2026-05-12T15:24:20.154388772+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld","lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 289 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"4f15d5ef-f7fc-425b-b8cb-fc5f30a6c1c3","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld","lookalike_tld"]}
16
+ {"timestamp":"2026-05-12T15:25:37.848071326+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"ccb16b41-be29-4f01-a282-a6bcfae55011","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
17
+ {"timestamp":"2026-05-12T15:26:34.462055123+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 128 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"6c12d587-d945-4368-8468-df452a46eabd","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
18
+ {"timestamp":"2026-05-12T15:28:33.447878095+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"db5e3926-5d58-48f9-aace-7053b18b8f19","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
19
+ {"timestamp":"2026-05-12T15:29:37.943801903+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld","lookalike_tld","lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 445 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"1f2d1600-61f8-4bb9-870d-8279626711d3","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld","lookalike_tld","lookalike_tld"]}
20
+ {"timestamp":"2026-05-12T15:31:01.893001303+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"8810ea8b-f0c5-4f74-8619-717aaf627dfd","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
.local/state/tirith/sessions/9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c.json CHANGED
@@ -1 +1 @@
1
- {"session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","session_start":"2026-05-12T15:20:18.624047190+00:00","total_warnings":6,"hidden_findings":0,"hidden_low":0,"hidden_info":0,"events":[{"timestamp":"2026-05-12T15:20:18.623918109+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:23:10.782232971+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"cmd /c start notepa","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:04.697107256+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:17.530845163+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^d\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]}],"escalation_events":[],"hidden_events":[]}
 
1
+ {"session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","session_start":"2026-05-12T15:20:18.624047190+00:00","total_warnings":13,"hidden_findings":0,"hidden_low":0,"hidden_info":0,"events":[{"timestamp":"2026-05-12T15:20:18.623918109+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:23:10.782232971+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"cmd /c start notepa","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:04.697107256+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:17.530845163+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^d\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:25:37.841055183+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:26:34.414654102+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"cmd /c type nul > %","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:28:33.444854439+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:29:37.938672636+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^r\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:29:37.938672636+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^r\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:29:37.938672636+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^r\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:31:01.889035730+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]}],"escalation_events":[],"hidden_events":[]}
channel_directory.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "updated_at": "2026-05-12T15:23:19.709065",
3
  "platforms": {
4
  "telegram": [
5
  {
 
1
  {
2
+ "updated_at": "2026-05-12T15:33:19.772861",
3
  "platforms": {
4
  "telegram": [
5
  {
memories/MEMORY.md CHANGED
@@ -1 +1,3 @@
1
- I am deployed on Hugging Face and currently lack the `web_search` tool. It cannot be enabled from within our conversation; it requires modification of the Hugging Face Space/Endpoint configuration or contacting its maintainer.
 
 
 
1
+ I am deployed on Hugging Face and currently lack the `web_search` tool. It cannot be enabled from within our conversation; it requires modification of the Hugging Face Space/Endpoint configuration or contacting its maintainer.
2
+ §
3
+ Louis expects me to control his local Windows machine via custom ngrok endpoints for screenshotting, clicking, typing, and scrolling. He prefers iterative troubleshooting when tasks (like file creation) fail to manifest on his screen.
real_screenshot.png CHANGED

Git LFS Details

  • SHA256: d0f5faa9325bd948739af6e9efccfb0b3229217e7b65e2a02e3215a94c5cbf10
  • Pointer size: 131 Bytes
  • Size of remote file: 330 kB

Git LFS Details

  • SHA256: b492d9b4c0446be9a6912a4704cd8fe6afc4c172d971413e16a0d5eac6ddbb15
  • Pointer size: 131 Bytes
  • Size of remote file: 336 kB
screenshot.png CHANGED

Git LFS Details

  • SHA256: 7e20430d2215067d6c3cab018ebd95cd3d3dfb23ef806610845b7dfbd4d37b3d
  • Pointer size: 131 Bytes
  • Size of remote file: 439 kB

Git LFS Details

  • SHA256: 21e9b01d0917c9ab10c4751f77e7444e716b80af4e3277d1c1e85b171cc29976
  • Pointer size: 131 Bytes
  • Size of remote file: 449 kB
sessions/20260512_143451_39407b45.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
sessions/request_dump_20260512_143451_39407b45_20260512_153515_674950.json ADDED
The diff for this file is too large to render. See raw diff
 
sessions/session_20260512_143451_39407b45.json CHANGED
The diff for this file is too large to render. See raw diff
 
sessions/session_20260512_152838_6cfc42.json ADDED
The diff for this file is too large to render. See raw diff
 
sessions/session_20260512_152949_9002d3.json ADDED
The diff for this file is too large to render. See raw diff
 
sessions/sessions.json CHANGED
@@ -3,7 +3,7 @@
3
  "session_key": "agent:main:telegram:dm:7904792459",
4
  "session_id": "20260512_143451_39407b45",
5
  "created_at": "2026-05-12T14:34:51.273708",
6
- "updated_at": "2026-05-12T15:24:23.819150",
7
  "display_name": "Louis",
8
  "platform": "telegram",
9
  "chat_type": "dm",
@@ -12,7 +12,7 @@
12
  "cache_read_tokens": 0,
13
  "cache_write_tokens": 0,
14
  "total_tokens": 0,
15
- "last_prompt_tokens": 21432,
16
  "estimated_cost_usd": 0.0,
17
  "cost_status": "unknown",
18
  "expiry_finalized": false,
 
3
  "session_key": "agent:main:telegram:dm:7904792459",
4
  "session_id": "20260512_143451_39407b45",
5
  "created_at": "2026-05-12T14:34:51.273708",
6
+ "updated_at": "2026-05-12T15:35:15.821759",
7
  "display_name": "Louis",
8
  "platform": "telegram",
9
  "chat_type": "dm",
 
12
  "cache_read_tokens": 0,
13
  "cache_write_tokens": 0,
14
  "total_tokens": 0,
15
+ "last_prompt_tokens": 25213,
16
  "estimated_cost_usd": 0.0,
17
  "cost_status": "unknown",
18
  "expiry_finalized": false,
skills/.usage.json CHANGED
@@ -3,13 +3,13 @@
3
  "archived_at": null,
4
  "created_at": "2026-05-12T15:22:06.806674+00:00",
5
  "created_by": "agent",
6
- "last_patched_at": "2026-05-12T15:22:08.517749+00:00",
7
- "last_used_at": null,
8
- "last_viewed_at": null,
9
- "patch_count": 1,
10
  "pinned": false,
11
  "state": "active",
12
- "use_count": 0,
13
- "view_count": 0
14
  }
15
  }
 
3
  "archived_at": null,
4
  "created_at": "2026-05-12T15:22:06.806674+00:00",
5
  "created_by": "agent",
6
+ "last_patched_at": "2026-05-12T15:30:23.296268+00:00",
7
+ "last_used_at": "2026-05-12T15:29:50.697410+00:00",
8
+ "last_viewed_at": "2026-05-12T15:29:50.692616+00:00",
9
+ "patch_count": 3,
10
  "pinned": false,
11
  "state": "active",
12
+ "use_count": 1,
13
+ "view_count": 1
14
  }
15
  }
skills/mcp/windows-remote-control/SKILL.md CHANGED
@@ -12,12 +12,11 @@ This skill provides a mechanism to interact with a Windows PC via a set of HTTP/
12
  - Note: The response is a JSON object containing a `image_base64` field. Use a decoder script to extract the image.
13
  - **Click**: `curl -X POST -H "Content-Type: application/json" -d '{"x": <x>, "y": <y>}' "<url>/click"`
14
  - **Type**: `curl -X POST -H "Content-Type: application/json" -d '{"text": "<text>"}' "<url>/type"`
15
- - **Scroll**: `curl -X POST -H "Content-Type: application/json" -d '{"amount": <amount>}' "<url>/scroll"`
16
 
17
- ## Pitfalls
18
- - **Response Format**: The screenshot endpoint returns a JSON-wrapped base64 string, not a raw binary image file. Always pipe to a decoder (e.g., `scripts/decode_screenshot.py`).
19
- - **Network**: Ensure the NGrok URL is active and reachable.
20
- - **Security**: The `.dev` TLD may trigger security warnings in some environments; ensure user approval is obtained.
21
 
22
  ## Scripts
23
  - `scripts/decode_screenshot.py`: Extracts the base64 image data from the JSON output of the `/screenshot` endpoint.
 
12
  - Note: The response is a JSON object containing a `image_base64` field. Use a decoder script to extract the image.
13
  - **Click**: `curl -X POST -H "Content-Type: application/json" -d '{"x": <x>, "y": <y>}' "<url>/click"`
14
  - **Type**: `curl -X POST -H "Content-Type: application/json" -d '{"text": "<text>"}' "<url>/type"`
15
+ - `scripts/decode_screenshot.py`: Extracts the base64 image data from the JSON output of the `/screenshot` endpoint. (Run `python3 /opt/data/skills/mcp/windows-remote-control/scripts/decode_screenshot.py`)
16
 
17
+ ## Troubleshooting / Pitfalls
18
+ - **Command Context**: Sending commands via `/type` (like `cmd /c ...`) may not work if the active window focus is not the Desktop or a shell. If direct creation fails, ensure the target directory is clearly in focus or use explicit paths.
19
+ - **File System**: Avoid assuming paths work. If operations fail, verify by taking a screenshot to see if a command prompt or error dialog is visible.
 
20
 
21
  ## Scripts
22
  - `scripts/decode_screenshot.py`: Extracts the base64 image data from the JSON output of the `/screenshot` endpoint.
skills/mcp/windows-remote-control/scripts/decode_screenshot.py CHANGED
@@ -1,15 +1,18 @@
1
  import json
2
  import base64
3
 
4
- def decode_screenshot(input_file, output_file):
5
- with open(input_file, 'r') as f:
6
  data = json.load(f)
7
  if 'image_base64' in data:
8
- with open(output_file, 'wb') as img_file:
9
  img_file.write(base64.b64decode(data['image_base64']))
10
- print(f"Successfully decoded to {output_file}")
11
  else:
12
- print("Error: 'image_base64' field not found in JSON.")
13
 
14
  if __name__ == "__main__":
15
- decode_screenshot('screenshot.png', 'real_screenshot.png')
 
 
 
 
1
  import json
2
  import base64
3
 
4
+ def decode_screenshot(json_path='screenshot.png', output_path='real_screenshot.png'):
5
+ with open(json_path, 'r') as f:
6
  data = json.load(f)
7
  if 'image_base64' in data:
8
+ with open(output_path, 'wb') as img_file:
9
  img_file.write(base64.b64decode(data['image_base64']))
10
+ return True
11
  else:
12
+ return False
13
 
14
  if __name__ == "__main__":
15
+ if decode_screenshot():
16
+ print("Success")
17
+ else:
18
+ print("Format error")
state.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d93e4bb91fbdac487fddb77c486ae9f08116ba2b28dfaf0dc12fb8079a3c6f2
3
- size 1200128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27036cbd13a6304daec1e12133df15aeb2c59871594efc226b09645d49d121b6
3
+ size 1462272