Status
@spfunctions/sdk is published as a stable package:
API
asOfservedAtopregionregimesalientchildRegionsmarketCount
CLI
--json is present.
SDK
world.read is read-only (sideEffect: "none") but it is a hosted data call with costEffect: "api_cost" and access.anonymousAllowed: false. The SDK therefore requires SF_API_KEY for sf.world.get(). No-key SDK bootstrap is limited to strict manifest inspection such as sf.manifest.get("world.read").
If apiKey is present, the SDK sends it as a bearer token. The SDK does not shell out to the CLI, call an LLM, retry hidden mutations, or perform side effects.
Agent Tool
The agent metadata exposes the canonical tool asworld.read. Tool hosts that reject dotted identifiers can use the compatibility name world_read.
Direct Agent Tool Events
The first accepted event stream supported onlyworld.read. The current direct tool once-mode also supports additional read/research tools from the draft contract map.
--ndjson is an alias for --stream-json.
Minimum emitted event types:
session.inittool.catalog.loadedrun.startedtool.call.startedtool.call.completedortool.call.failedagent.finalrun.completed