kl-mcp-client 2.1.13__tar.gz → 2.1.15__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.13 → kl_mcp_client-2.1.15}/PKG-INFO +1 -1
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/asyncio/tools.py +8 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/tools.py +7 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client.egg-info/PKG-INFO +1 -1
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/pyproject.toml +1 -1
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/README.md +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/__init__.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/__version__.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/asyncio/__init__.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/asyncio/client.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client/client.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client.egg-info/SOURCES.txt +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client.egg-info/dependency_links.txt +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client.egg-info/requires.txt +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/kl_mcp_client.egg-info/top_level.txt +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/setup.cfg +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/tests/test_async_tools.py +0 -0
- {kl_mcp_client-2.1.13 → kl_mcp_client-2.1.15}/tests/test_tools.py +0 -0
|
@@ -333,3 +333,11 @@ class MCPTools:
|
|
|
333
333
|
{"html": html, "prompt": prompt},
|
|
334
334
|
)
|
|
335
335
|
return res.get("structuredContent", {})
|
|
336
|
+
|
|
337
|
+
async def current_url(self, sessionId: str):
|
|
338
|
+
logger.debug("current_url")
|
|
339
|
+
res = await self.client.call_tool(
|
|
340
|
+
"getCurrentUrl", {"sessionId": sessionId}
|
|
341
|
+
)
|
|
342
|
+
data = res.get("structuredContent", {})
|
|
343
|
+
return data
|
|
@@ -516,6 +516,13 @@ class MCPTools:
|
|
|
516
516
|
"viewport", {"sessionId": sessionId}
|
|
517
517
|
).get("structuredContent", {})
|
|
518
518
|
|
|
519
|
+
@_ensure_client
|
|
520
|
+
def current_url(self, sessionId: str):
|
|
521
|
+
logger.debug("current_url")
|
|
522
|
+
return self.client.call_tool(
|
|
523
|
+
"getCurrentUrl", {"sessionId": sessionId}
|
|
524
|
+
).get("structuredContent", {})
|
|
525
|
+
|
|
519
526
|
@_ensure_client
|
|
520
527
|
def set_viewport(
|
|
521
528
|
self,
|
|
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
|
|
File without changes
|