SRVO Script SDK

A műveletek leírása angolul marad. A magyar szöveg anyanyelvi ellenőrzésre vár.

Ezekkel az SDK-hívásokkal adatokat olvashatsz a szkriptből. A bemenetet és a kimenetet a hozzárendelt művelet adja meg.

Read-only SDK aliases from packages/script-protocol. Inputs and outputs follow the mapped registry action.

srvo.metrics.query

Query readable metric series and previous periods with the SRVO Script contract.

Action: metrics.query. Capability: boards.records.read.

Field In Type Required
compareTo input “previousPeriod” no
filters input array<{ field: string, op: “eq” / “neq”, value: string or number or boolean } or { field: string, op: “in”, values: array } or { field: string, op: “gt” / “gte” / “lt” / “lte”, value: number or string } or { field: string, op: “isEmpty” / “isNotEmpty” }> no
groupBy input array<string or “date:day” / “date:week” / “date:month”> no
metrics input array<string or { tableId: string, op: “sum” / “avg” / “min” / “max” / “countRows” / “countNonNull” / “percent”, field?: string, dateField?: string }> yes
range input { preset: “thisWeek” / “lastWeek” / “thisMonth” / “lastMonth” } or { lastDays: integer } or { from: string, to: string } no

srvo.notes.get

Read a Notes page and its validated document blocks.

Action: notes.pages.get. Capability: notes.pages.read.

Field In Type Required
noteId input string yes

srvo.notes.query

List visible pages in a space or this member’s quick notes inbox.

Action: notes.pages.list. Capability: notes.pages.read.

Field In Type Required
after input string no
limit input integer no
quick input “true” / “false” no
spaceId input string no

srvo.records.get

Get one record by id.

Action: boards.records.get. Capability: boards.records.read.

Field In Type Required
recordId input string yes

srvo.records.query

List the records of a table, ordered by id, one page at a time.

Action: boards.records.list. Capability: boards.records.read.

Field In Type Required
cursor input string no
limit input integer no
tableId input string yes

srvo.tables.tree

The sidebar tree: spaces, items and the caller’s favourites, as far as the caller can see.

Action: structure.tree.get. Capability: structure.tree.read.

Field In Type Required
module input “boards” / “notes” / “files” / “srvo” no

srvo.track.entries.get

Get a visible time entry.

Action: track.entries.get. Capability: track.entries.read.

Field In Type Required
entryId input string yes
includeDeleted input boolean or “true” / “false” no

srvo.track.entries.query

List own time or explicitly permitted member/team time intersecting a UTC range.

Action: track.entries.list. Capability: track.entries.read.

Field In Type Required
cursor input string no
from input string yes
limit input integer no
memberId input string no
scope input “own” / “accessible” no
teamId input string no
timeZone input string yes
to input string yes

srvo.track.entries.summary

Day/week and project/client totals in an explicit time zone. Drafts excluded; overlaps count independently.

Action: track.entries.summary. Capability: track.entries.read.

Field In Type Required
from input string yes
memberId input string no
rounding input { mode?: “off” / “up” / “down” / “nearest”, stepS?: integer, apply?: “entry” / “report” } no
scope input “own” / “accessible” no
teamId input string no
timeZone input string yes
to input string yes

srvo.users.capabilities

Read your effective tenant capabilities and per-space grants in this workspace.

Action: core.me.capabilities. Capability: core.self.read.

No input fields.

srvo.users.me

Who am I: workspace, member, role, kind, and for agents the person they act for.

Action: core.self.whoami. Capability: core.self.read.

No input fields.