Support bounded machine instruction step counts in MCP
This commit is contained in:
@@ -189,9 +189,9 @@ def make_server(client: McpSession | ManagedMcpSession,
|
||||
return client.pause_execution()
|
||||
|
||||
@tool()
|
||||
def step_instruction() -> dict[str, Any]:
|
||||
"""Выполнить одну машинную инструкцию Z80 и вернуть текущую позицию."""
|
||||
return client.step_instruction()
|
||||
def step_instruction(count: int = 1) -> dict[str, Any]:
|
||||
"""Выполнить 1..64 машинных инструкций Z80 и вернуть текущую позицию."""
|
||||
return client.step_instruction(count)
|
||||
|
||||
@tool()
|
||||
def step_source(kind: str = 'into') -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user