kl-mcp-client 2.1.10__py3-none-any.whl → 2.1.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kl_mcp_client/__version__.py +1 -1
- kl_mcp_client/asyncio/tools.py +22 -2
- kl_mcp_client/tools.py +22 -2
- {kl_mcp_client-2.1.10.dist-info → kl_mcp_client-2.1.12.dist-info}/METADATA +1 -1
- kl_mcp_client-2.1.12.dist-info/RECORD +11 -0
- kl_mcp_client-2.1.10.dist-info/RECORD +0 -11
- {kl_mcp_client-2.1.10.dist-info → kl_mcp_client-2.1.12.dist-info}/WHEEL +0 -0
- {kl_mcp_client-2.1.10.dist-info → kl_mcp_client-2.1.12.dist-info}/top_level.txt +0 -0
kl_mcp_client/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__VERSION__ = "2.1.
|
|
1
|
+
__VERSION__ = "2.1.12"
|
kl_mcp_client/asyncio/tools.py
CHANGED
|
@@ -337,7 +337,7 @@ class MCPTools:
|
|
|
337
337
|
payload: ThirdPartyOpenRequest (optional)
|
|
338
338
|
"""
|
|
339
339
|
res = await self.client.call_tool(
|
|
340
|
-
"
|
|
340
|
+
"createBrowser",
|
|
341
341
|
payload or {},
|
|
342
342
|
)
|
|
343
343
|
return res.get("structuredContent", {})
|
|
@@ -348,7 +348,7 @@ class MCPTools:
|
|
|
348
348
|
- KHÔNG cần payload
|
|
349
349
|
"""
|
|
350
350
|
res = await self.client.call_tool(
|
|
351
|
-
"
|
|
351
|
+
"releaseBrowser",
|
|
352
352
|
{
|
|
353
353
|
"pod_name": pop_name
|
|
354
354
|
},
|
|
@@ -402,3 +402,23 @@ class MCPTools:
|
|
|
402
402
|
},
|
|
403
403
|
)
|
|
404
404
|
return res.get("structuredContent", {})
|
|
405
|
+
# ======================================================
|
|
406
|
+
# CURRENT TAB
|
|
407
|
+
# ======================================================
|
|
408
|
+
|
|
409
|
+
async def current_tab(self, sessionId: str) -> Dict[str, Any]:
|
|
410
|
+
"""
|
|
411
|
+
Get current active browser tab ID.
|
|
412
|
+
|
|
413
|
+
Returns:
|
|
414
|
+
{
|
|
415
|
+
"tabId": "<targetId>"
|
|
416
|
+
}
|
|
417
|
+
"""
|
|
418
|
+
res = await self.client.call_tool(
|
|
419
|
+
"currentTab",
|
|
420
|
+
{
|
|
421
|
+
"sessionId": sessionId,
|
|
422
|
+
},
|
|
423
|
+
)
|
|
424
|
+
return res.get("structuredContent", {})
|
kl_mcp_client/tools.py
CHANGED
|
@@ -574,7 +574,7 @@ class MCPTools:
|
|
|
574
574
|
payload: map cho ThirdPartyOpenRequest
|
|
575
575
|
"""
|
|
576
576
|
return self.client.call_tool(
|
|
577
|
-
"
|
|
577
|
+
"createBrowser",
|
|
578
578
|
payload or {},
|
|
579
579
|
).get("structuredContent", {})
|
|
580
580
|
|
|
@@ -584,7 +584,7 @@ class MCPTools:
|
|
|
584
584
|
Release / stop browser runtime.
|
|
585
585
|
"""
|
|
586
586
|
return self.client.call_tool(
|
|
587
|
-
"
|
|
587
|
+
"releaseBrowser",
|
|
588
588
|
{
|
|
589
589
|
"pod_name": pop_name
|
|
590
590
|
},
|
|
@@ -637,3 +637,23 @@ class MCPTools:
|
|
|
637
637
|
},
|
|
638
638
|
},
|
|
639
639
|
).get("structuredContent", {})
|
|
640
|
+
# ======================================================
|
|
641
|
+
# CURRENT TAB
|
|
642
|
+
# ======================================================
|
|
643
|
+
|
|
644
|
+
@_ensure_client
|
|
645
|
+
def current_tab(self, sessionId: str) -> Dict[str, Any]:
|
|
646
|
+
"""
|
|
647
|
+
Get current active browser tab ID.
|
|
648
|
+
|
|
649
|
+
Returns:
|
|
650
|
+
{
|
|
651
|
+
"tabId": "<targetId>"
|
|
652
|
+
}
|
|
653
|
+
"""
|
|
654
|
+
return self.client.call_tool(
|
|
655
|
+
"currentTab",
|
|
656
|
+
{
|
|
657
|
+
"sessionId": sessionId,
|
|
658
|
+
},
|
|
659
|
+
).get("structuredContent", {})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
kl_mcp_client/__init__.py,sha256=pdJdBcEH5HaRuHSe2B7VUyRgH5ad3u1dDc4euZMDRMY,106
|
|
2
|
+
kl_mcp_client/__version__.py,sha256=6P4F0Z5vR5CLLEiDFmUg1lme24t_kB5E4FrZaa7RSws,23
|
|
3
|
+
kl_mcp_client/client.py,sha256=ujhRp0zC5GJKnBYziIPMdKZqrhv8K2t6tBAuwYw7q_k,4513
|
|
4
|
+
kl_mcp_client/tools.py,sha256=y4erfOpJ70T2DkCUc95d5Y9dJC9UhbYV2BBd2SNQPM4,20753
|
|
5
|
+
kl_mcp_client/asyncio/__init__.py,sha256=pdJdBcEH5HaRuHSe2B7VUyRgH5ad3u1dDc4euZMDRMY,106
|
|
6
|
+
kl_mcp_client/asyncio/client.py,sha256=5CpPf1YGOTzYfbG1mAK9s-vhKQULjdlSJnhXm3Th-1s,4413
|
|
7
|
+
kl_mcp_client/asyncio/tools.py,sha256=pqwSg86NVaMaZkEiMiyk_fe9T9A97wodMUSdqNRe0sY,14061
|
|
8
|
+
kl_mcp_client-2.1.12.dist-info/METADATA,sha256=DefAMoJ0BLrC3zZB9nb6abv7XhswWoHd1rzPthiNrB8,4444
|
|
9
|
+
kl_mcp_client-2.1.12.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
10
|
+
kl_mcp_client-2.1.12.dist-info/top_level.txt,sha256=wd_HFFyGjiKavwACuj8Ny0svtVyNsrxCSVU48EkoQ7c,14
|
|
11
|
+
kl_mcp_client-2.1.12.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
kl_mcp_client/__init__.py,sha256=pdJdBcEH5HaRuHSe2B7VUyRgH5ad3u1dDc4euZMDRMY,106
|
|
2
|
-
kl_mcp_client/__version__.py,sha256=Uq-M9LFtR8tnGSaOR2w76lZ0qh5z5wwReA5I7feMj0k,23
|
|
3
|
-
kl_mcp_client/client.py,sha256=ujhRp0zC5GJKnBYziIPMdKZqrhv8K2t6tBAuwYw7q_k,4513
|
|
4
|
-
kl_mcp_client/tools.py,sha256=eLxWEIh0u72ao8jpkylbP2-1TpYHdPpCDISrq2H5WvA,20212
|
|
5
|
-
kl_mcp_client/asyncio/__init__.py,sha256=pdJdBcEH5HaRuHSe2B7VUyRgH5ad3u1dDc4euZMDRMY,106
|
|
6
|
-
kl_mcp_client/asyncio/client.py,sha256=5CpPf1YGOTzYfbG1mAK9s-vhKQULjdlSJnhXm3Th-1s,4413
|
|
7
|
-
kl_mcp_client/asyncio/tools.py,sha256=t-3iQnYzOCKjuPqhMlHh7XTbsSgyhcfnJNPrZff5X-c,13510
|
|
8
|
-
kl_mcp_client-2.1.10.dist-info/METADATA,sha256=jhYWCn9UZZStwF_J3eQNhfY-LCMleFjgXhykLaExei0,4444
|
|
9
|
-
kl_mcp_client-2.1.10.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
10
|
-
kl_mcp_client-2.1.10.dist-info/top_level.txt,sha256=wd_HFFyGjiKavwACuj8Ny0svtVyNsrxCSVU48EkoQ7c,14
|
|
11
|
-
kl_mcp_client-2.1.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|