kl-mcp-client 2.1.10__tar.gz → 2.1.11__tar.gz
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-2.1.10 → kl_mcp_client-2.1.11}/PKG-INFO +1 -1
- kl_mcp_client-2.1.11/kl_mcp_client/__version__.py +1 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/tools.py +20 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/tools.py +20 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/PKG-INFO +1 -1
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/pyproject.toml +1 -1
- kl_mcp_client-2.1.10/kl_mcp_client/__version__.py +0 -1
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/README.md +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/__init__.py +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/__init__.py +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/client.py +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/client.py +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/SOURCES.txt +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/dependency_links.txt +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/requires.txt +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/top_level.txt +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/setup.cfg +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/tests/test_async_tools.py +0 -0
- {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/tests/test_tools.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__VERSION__ = "2.1.11"
|
|
@@ -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", {})
|
|
@@ -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", {})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__VERSION__ = "2.1.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|