openclaw_agents_files_get
Retrieve an agent's file contents, such as system prompt or tool definitions, by providing the agent ID and the file path or name.
Instructions
Fetch a specific agent file's contents (system prompt, tool definitions, etc.). Wraps agents.files.get. Read-only. Pass either path (full path including the file name) or name (file basename) — not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File basename. Pass either this or `path`. | |
| path | No | Full file path (e.g. 'system.md'). Pass either this or `name`. | |
| agentId | Yes | ||
| instance | No | Optional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list. |