Skip to main content
Glama

hook_syscall

Intercept system calls during emulation to log activity or halt execution, enabling analysis of program behavior in isolated sessions.

Instructions

Install a syscall hook to intercept system calls.

Modes: skip: Log the syscall and return default_return (continue execution). stop: Log the syscall and stop emulation.

Idempotent — replaces existing hook.

Args: session_id: The session ID. mode: Hook mode — "skip" (default) or "stop". default_return: Return value for skip mode (default 0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
modeNoskip
default_returnNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LabGuy94/MCPEmulate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server