Append content to a file in the executor workspace (UNC appendfile)
append-fileAppend text to a file in the executor's workspace, preserving existing content and creating the file if it does not exist yet.
Instructions
Append content to the end of a file in the executor's workspace folder, creating the file first if it does not exist. Existing contents are preserved (unlike write-file, which overwrites). NOTE: this is executor-side file I/O — the connector runs INSIDE the executor, so the path is relative to the executor's workspace directory on the host machine, NOT the Roblox game. Requires the UNC function appendfile(path, content). The call is type-guarded and pcall-wrapped: if appendfile is missing you get { error = 'appendfile is not available in this executor.' }, and any failure returns { error = }. Returns { path, ok = true } or { error }. Signature: { path: string, content: string, threadContext: number?, timeoutMs: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Capabilities: executor filesystem. Produces: operation-receipt. Verify with: file-exists. Safety: MUTATING; writes executor workspace filesystem. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file within the executor workspace folder, e.g. 'logs/session.txt'. Created if missing. | |
| content | Yes | The text content to append to the end of the file. | |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |