ntimer
Time tracking for you and your AI coding agents: start, stop and report timers over MCP.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"ntimer": {
"url": "https://api.ntimer.app/mcp"
}
}
}远程端点
https://api.ntimer.app/mcpstreamable-http它能做什么
工具清单
工具(22)
🟢ntime_status
Use this when you need the account's timers with each work path, state, elapsed time, and mode, plus the work count. It includes timers started on the phone or web. The active timer is the one started most recently.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"active": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"running": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
}
},
"workCount": {
"type": "number"
}
},
"required": [
"active",
"running",
"workCount"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪ntime_start(work, mode, type, idleMinutes, idempotencyKey)
Use this when you need to start an account timer for a work item, visible immediately on the phone and web. When parallel timers are disabled, it stops another running timer; otherwise up to ten work timers may run. It returns an error if that work already has a running timer.
输入模式
{
"type": "object",
"properties": {
"work": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
},
"mode": {
"description": "Timer mode: \"Pomodoro 25/5\", \"Flowtime\", \"52/17\", a custom timer, or a minute count (\"25\" means countdown). Omit for a stopwatch.",
"type": "string",
"maxLength": 60
},
"type": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning"
],
"description": "Activity type: coding, office, meeting, or learning. Defaults to the work item's inherited type, or office. Hobby, habit, and personal work use their own type."
},
"idleMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 1440,
"description": "Minutes without app activity or an agent signal before the timer closes at its last activity. Zero disables idle closing. Defaults to 30 for coding and disabled for other activities."
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"work"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪ntime_pause(work, idempotencyKey)
Use this when you need to pause a running work timer. The work item is optional when only one timer is active.
输入模式
{
"type": "object",
"properties": {
"work": {
"description": "Work timer to change. Optional when only one timer is active.",
"type": "string",
"minLength": 1,
"maxLength": 400
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪ntime_resume(work, idempotencyKey)
Use this when you need to resume a paused work timer. The work item is optional when only one timer exists. With parallel timers disabled, it stops another running timer.
输入模式
{
"type": "object",
"properties": {
"work": {
"description": "Work timer to change. Optional when only one timer is active.",
"type": "string",
"minLength": 1,
"maxLength": 400
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪ntime_stop(work, note, idempotencyKey)
Use this when you need to stop a work timer and close its session. The work item is optional when only one timer is active.
输入模式
{
"type": "object",
"properties": {
"work": {
"description": "Work timer to change. Optional when only one timer is active.",
"type": "string",
"minLength": 1,
"maxLength": 400
},
"note": {
"description": "Optional session note.",
"type": "string",
"maxLength": 2000
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢ntime_list_works
Use this when you need the account's company, project, task, and hobby tree with full paths, types, and hourly rates.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"works": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"kind": {
"type": "string"
},
"parentId": {
"type": [
"string",
"null"
]
},
"depth": {
"type": "number"
},
"client": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"rate": {
"type": [
"string",
"null"
]
},
"billable": {
"type": [
"boolean",
"null"
]
},
"activity": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"kind",
"parentId",
"depth",
"rate",
"billable"
],
"additionalProperties": false
}
}
},
"required": [
"works"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡ntime_add_work(name, parent, kind, client, activity, ...)
Use this when you need to add a work item according to the account tree rules. Company projects belong under the company; a client name places a billable project under that client and creates the client if needed. Clientless projects, personal areas, hobbies, and habits are not billable.
输入模式
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"parent": {
"description": "Parent name, path, or ID: a project for a task, or a client for a project.",
"type": "string",
"maxLength": 400
},
"kind": {
"description": "Defaults to work when a parent exists, otherwise project.",
"type": "string",
"enum": [
"company",
"client",
"project",
"work",
"personal",
"hobby",
"habit"
]
},
"client": {
"description": "Client name for a project. Creates the client if needed.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning"
],
"description": "Activity type: coding, office, meeting, or learning. Defaults to the work item's inherited type, or office. Hobby, habit, and personal work use their own type."
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"work": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"kind": {
"type": "string"
},
"parentId": {
"type": [
"string",
"null"
]
},
"depth": {
"type": "number"
},
"client": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"rate": {
"type": [
"string",
"null"
]
},
"billable": {
"type": [
"boolean",
"null"
]
},
"activity": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"kind",
"parentId",
"depth",
"rate",
"billable"
],
"additionalProperties": false
},
"billed": {
"type": "boolean"
}
},
"required": [
"work",
"billed"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_update_work(work, name, kind, parent, rate, ...)
Use this when you need to update only the supplied fields of a work item: name, kind, activity, parent, hourly rate, currency, billable status, note, or client invoice details.
输入模式
{
"type": "object",
"properties": {
"work": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"kind": {
"type": "string",
"enum": [
"company",
"client",
"project",
"work",
"personal",
"hobby",
"habit"
]
},
"parent": {
"description": "New parent work item. Use \"\" to move to the top level.",
"type": "string",
"maxLength": 400
},
"rate": {
"description": "Hourly rate, such as \"85\" or \"85.50\". Use \"\" to clear it.",
"type": "string",
"maxLength": 30
},
"currency": {
"type": "string",
"enum": [
"EUR",
"USD",
"TRY",
"GBP"
]
},
"billable": {
"type": "boolean"
},
"note": {
"type": "string",
"maxLength": 2000
},
"activity": {
"description": "Activity type: coding, office, meeting, or learning. Use \"inherit\" to inherit from the parent.",
"type": "string",
"enum": [
"inherit",
"coding",
"office",
"meeting",
"learning"
]
},
"contact": {
"description": "Client contact person.",
"type": "string",
"maxLength": 2000
},
"email": {
"description": "Client billing email.",
"type": "string",
"maxLength": 2000
},
"address": {
"description": "Client billing address.",
"type": "string",
"maxLength": 2000
},
"country": {
"description": "Client country as a two-letter ISO code, such as NL or DE.",
"type": "string",
"maxLength": 2
},
"taxId": {
"description": "Client tax or registration number.",
"type": "string",
"maxLength": 2000
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"work"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"work": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"kind": {
"type": "string"
},
"parentId": {
"type": [
"string",
"null"
]
},
"depth": {
"type": "number"
},
"client": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"rate": {
"type": [
"string",
"null"
]
},
"billable": {
"type": [
"boolean",
"null"
]
},
"activity": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"kind",
"parentId",
"depth",
"rate",
"billable"
],
"additionalProperties": false
},
"billed": {
"type": "boolean"
}
},
"required": [
"work",
"billed"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_set_account(type, company, idempotencyKey)
Use this when you need to set the account type. A company account uses the supplied company as the tree root and invoice sender; a personal account has no company root. Existing work items are not moved.
输入模式
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"personal",
"company"
]
},
"company": {
"description": "Company name, required for a company account.",
"type": "string",
"maxLength": 200
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"personal",
"company"
]
},
"company": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"kind": {
"type": "string"
},
"parentId": {
"type": [
"string",
"null"
]
},
"depth": {
"type": "number"
},
"client": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"rate": {
"type": [
"string",
"null"
]
},
"billable": {
"type": [
"boolean",
"null"
]
},
"activity": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"kind",
"parentId",
"depth",
"rate",
"billable"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"company"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡ntime_mindmap_create(title, markdown, work, idempotencyKey)
Use this when you need to create a mind map from Markdown for viewing and editing on Ntime's Map screen. Markmap format: one '# Title' is the root; '##' and '###' headings and '- ' list items are branches (indent by two spaces). Non-heading and non-list lines are notes for the preceding branch. '- [ ] task' and '- [x] task' are task boxes. '<!-- markmap: fold -->' at a branch end starts it folded; 'foldAll' also folds descendants. Optional frontmatter: '---\nmarkmap:\n layout: tree | two-sided | org-chart\n foldLevel: 2\n---'. Bold, italic, links, and code become plain text.
输入模式
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Mind map title."
},
"markdown": {
"type": "string",
"minLength": 1,
"maxLength": 30000,
"description": "Mind map Markdown, up to 30000 characters. Markmap format: one '# Title' is the root; '##' and '###' headings and '- ' list items are branches (indent by two spaces). Non-heading and non-list lines are notes for the preceding branch. '- [ ] task' and '- [x] task' are task boxes. '<!-- markmap: fold -->' at a branch end starts it folded; 'foldAll' also folds descendants. Optional frontmatter: '---\\nmarkmap:\\n layout: tree | two-sided | org-chart\\n foldLevel: 2\\n---'. Bold, italic, links, and code become plain text."
},
"work": {
"description": "Optional work item name, path, or ID associated with the map.",
"type": "string",
"minLength": 1,
"maxLength": 400
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"title",
"markdown"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"map": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"branches": {
"type": "number"
},
"layout": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"source": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"title",
"branches",
"layout",
"source",
"updatedAt"
],
"additionalProperties": false
},
"shown": {
"type": "string"
}
},
"required": [
"map",
"shown"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_mindmap_edit(map, version, ops, idempotencyKey)
Use this when you need to apply up to 50 atomic mind map operations, all or none. Branches are identified by ID or label path. When supplied, version must match the map's current update time. Outline format: "v <updatedAt>"; root `"" # Title`; branches "0.1 - [ ] text". Branches are addressed by ID or a label path such as "Product / Pricing page". Search returns up to 20 IDs and paths. The under and depth fields select a subtree.
输入模式
{
"type": "object",
"properties": {
"map": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Mind map ID or case-insensitive title."
},
"version": {
"description": "Version from the outline's v line. Omit to edit the latest text.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"ops": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "rename"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "add"
},
"parent": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"note": {
"type": "string"
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "remove"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "move"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"parent": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"parentPath": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"index"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "check"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"done": {
"type": [
"boolean",
"null"
]
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"done"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "note"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"text": {
"type": "string"
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "fold"
},
"node": {
"description": "Branch ID from an outline; use \"\" for the root.",
"type": "string"
},
"path": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"folded": {
"type": "boolean"
},
"expect": {
"description": "Current branch label. A mismatch rejects the entire operation.",
"type": "string"
}
},
"required": [
"op",
"folded"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "topic"
},
"text": {
"type": "string",
"minLength": 1
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"op",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "topic_remove"
},
"topic": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"topic"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "link"
},
"from": {
"type": "string",
"minLength": 1
},
"fromPath": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
},
"to": {
"type": "string",
"minLength": 1
},
"toPath": {
"description": "Label path below the root, such as \"Product / Pricing page\".",
"type": "string",
"minLength": 1
}
},
"required": [
"op"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "unlink"
},
"id": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "sticky"
},
"text": {
"type": "string"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"color": {
"type": "string",
"enum": [
"yellow",
"pink",
"blue",
"green",
"orange",
"violet"
]
}
},
"required": [
"op",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "sticky_edit"
},
"id": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string"
},
"color": {
"type": "string",
"enum": [
"yellow",
"pink",
"blue",
"green",
"orange",
"violet"
]
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"required": [
"op",
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "sticky_remove"
},
"id": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"id"
],
"additionalProperties": false
}
]
},
"description": "Operations applied in order."
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"map",
"ops"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"map": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"branches": {
"type": "number"
},
"layout": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"source": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"title",
"branches",
"layout",
"source",
"updatedAt"
],
"additionalProperties": false
},
"version": {
"type": "number"
},
"outline": {
"type": "array",
"items": {
"type": "string"
}
},
"changed": {
"type": "boolean"
}
},
"required": [
"map",
"version",
"outline",
"changed"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_mindmap_update(map, markdown, title, idempotencyKey)
Use this when you need to replace a mind map's complete Markdown, title, or both. The supplied Markdown overwrites the current map text.
输入模式
{
"type": "object",
"properties": {
"map": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Mind map ID or case-insensitive title."
},
"markdown": {
"type": "string",
"minLength": 1,
"maxLength": 30000,
"description": "Mind map Markdown, up to 30000 characters. Markmap format: one '# Title' is the root; '##' and '###' headings and '- ' list items are branches (indent by two spaces). Non-heading and non-list lines are notes for the preceding branch. '- [ ] task' and '- [x] task' are task boxes. '<!-- markmap: fold -->' at a branch end starts it folded; 'foldAll' also folds descendants. Optional frontmatter: '---\\nmarkmap:\\n layout: tree | two-sided | org-chart\\n foldLevel: 2\\n---'. Bold, italic, links, and code become plain text."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"map"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"map": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"branches": {
"type": "number"
},
"layout": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"source": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"title",
"branches",
"layout",
"source",
"updatedAt"
],
"additionalProperties": false
},
"changed": {
"type": "boolean"
}
},
"required": [
"map",
"changed"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢ntime_mindmap_get(map, format, under, depth, find)
Use this when you need a mind map as complete Markdown or as concise outline lines with IDs. Outline mode supports a subtree, depth limit, or label search with up to 20 ID and path results. Outline format: "v <updatedAt>"; root `"" # Title`; branches "0.1 - [ ] text". Branches are addressed by ID or a label path such as "Product / Pricing page". Search returns up to 20 IDs and paths. The under and depth fields select a subtree.
输入模式
{
"type": "object",
"properties": {
"map": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Mind map ID or case-insensitive title."
},
"format": {
"description": "Defaults to \"markdown\". Use \"outline\" for branch IDs.",
"type": "string",
"enum": [
"markdown",
"outline"
]
},
"under": {
"description": "Return only this branch subtree, identified by ID or label path.",
"type": "string",
"minLength": 1
},
"depth": {
"description": "Number of levels to show below the selected branch or root.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"find": {
"description": "Label substring. Returns matching branch IDs and paths, up to 20.",
"type": "string",
"minLength": 1
}
},
"required": [
"map"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"map": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"branches": {
"type": "number"
},
"layout": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"source": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"title",
"branches",
"layout",
"source",
"updatedAt"
],
"additionalProperties": false
},
"markdown": {
"type": "string"
},
"outline": {
"type": "string"
},
"find": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"id",
"path"
],
"additionalProperties": false
}
},
"version": {
"type": "number"
}
},
"required": [
"map"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢ntime_mindmap_list
Use this when you need to list the account's mind maps from newest to oldest with ID, title, author, size, and last modification time.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"maps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"source": {
"type": "string"
},
"chars": {
"type": "number"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"title",
"source",
"chars",
"updatedAt"
],
"additionalProperties": false
}
},
"limit": {
"type": "number"
}
},
"required": [
"maps",
"limit"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡ntime_log(work, startIso, endIso, note, type, ...)
Use this when you need to add a completed work block to the account as a closed manual session. It counts at half weight on the activity card, and blocks older than one week do not count there.
输入模式
{
"type": "object",
"properties": {
"work": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
},
"startIso": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "Start time, ISO 8601, for example 2026-10-17T09:00:00+03:00."
},
"endIso": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "End time, ISO 8601, for example 2026-10-17T09:00:00+03:00."
},
"note": {
"type": "string",
"maxLength": 2000
},
"type": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning"
],
"description": "Activity type: coding, office, meeting, or learning. Defaults to the work item's inherited type, or office. Hobby, habit, and personal work use their own type."
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"work",
"startIso",
"endIso"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"session": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
},
"overlaps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
}
}
},
"required": [
"session",
"overlaps"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_edit_session(session, work, startIso, endIso, note, ...)
Use this when you need to change a saved session's work item, activity type, start or end time, or note. Pauses merge into one block when times change. Running sessions allow only work, type, and note changes; invoiced sessions cannot be changed.
输入模式
{
"type": "object",
"properties": {
"session": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Session ID returned by a status or report result."
},
"work": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
},
"startIso": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "New start time, ISO 8601, for example 2026-10-17T09:00:00+03:00."
},
"endIso": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "New end time, ISO 8601, for example 2026-10-17T09:00:00+03:00."
},
"note": {
"type": "string",
"maxLength": 2000
},
"type": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning"
],
"description": "Activity type: coding, office, meeting, or learning. Defaults to the work item's inherited type, or office. Hobby, habit, and personal work use their own type."
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"session"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_delete_session(session, idempotencyKey)
Use this when you need to delete a saved session from the account. Running or invoiced sessions cannot be deleted.
输入模式
{
"type": "object",
"properties": {
"session": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"idempotencyKey": {
"description": "On a retry, the same key returns the first result without repeating the operation.",
"type": "string",
"minLength": 8,
"maxLength": 100
}
},
"required": [
"session"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"deleted": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
}
},
"required": [
"deleted"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢ntime_report(period, work)
Use this when you need account time, billable amounts, and a breakdown by work item for today, this week, or this month across all devices.
输入模式
{
"type": "object",
"properties": {
"period": {
"type": "string",
"enum": [
"today",
"week",
"month"
]
},
"work": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
}
},
"required": [
"period"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"period": {
"type": "string",
"enum": [
"today",
"week",
"month"
]
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"historyDays": {
"type": [
"number",
"null"
]
},
"historyClamped": {
"type": "boolean"
},
"requestedFrom": {
"type": "string"
},
"message": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"durationMs": {
"type": "number"
},
"duration": {
"type": "string"
},
"billableMs": {
"type": "number"
},
"amounts": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"amountsFormatted": {
"type": "array",
"items": {
"type": "string"
}
},
"sessionCount": {
"type": "number"
},
"byWork": {
"type": "array",
"items": {
"type": "object",
"properties": {
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"durationMs": {
"type": "number"
},
"duration": {
"type": "string"
}
},
"required": [
"workId",
"work",
"durationMs",
"duration"
],
"additionalProperties": false
}
},
"sessions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
}
}
},
"required": [
"period",
"from",
"to",
"historyDays",
"historyClamped",
"requestedFrom",
"work",
"durationMs",
"duration",
"billableMs",
"amounts",
"amountsFormatted",
"sessionCount",
"byWork",
"sessions"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴ntime_focus(project, work)
Use this when you need to select or clear the work item that receives coding activity signals for a project. The focus expires after eight hours without a signal.
输入模式
{
"type": "object",
"properties": {
"project": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Git repository root directory name."
},
"work": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Work name, full path (\"Studio / Ntime\"), or ID; case-insensitive."
},
{
"type": "null"
}
],
"description": "Full path or work name; null clears the focus."
}
},
"required": [
"project",
"work"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"project": {
"type": "string"
},
"work": {
"type": [
"string",
"null"
]
},
"cleared": {
"type": "boolean"
}
},
"required": [
"project",
"work",
"cleared"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪ntime_heartbeat(project, file, work, type, idleMinutes)
Use this when you need to record a coding activity signal. It starts a coding session for the project or selected work item when none is open, or extends the existing session. With parallel timers disabled, starting a session stops another running timer. An idle session closes at its last signal, and writes are limited to once per project per minute.
输入模式
{
"type": "object",
"properties": {
"project": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Project name, normally the Git repository root directory."
},
"file": {
"description": "File currently being edited, if any.",
"type": "string",
"maxLength": 1000
},
"work": {
"description": "Work item that receives the signal. Defaults to the project-named work item.",
"type": "string",
"minLength": 1,
"maxLength": 400
},
"type": {
"description": "Activity type for a new session. Defaults to coding.",
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning"
]
},
"idleMinutes": {
"description": "Minutes without a signal before a new session closes. Defaults to 30; zero disables idle closing.",
"type": "integer",
"minimum": 0,
"maximum": 1440
}
},
"required": [
"project"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"project": {
"type": "string"
},
"coalesced": {
"type": "boolean"
},
"action": {
"type": "string"
},
"session": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workId": {
"type": "string"
},
"work": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"running",
"paused",
"break",
"stopped"
]
},
"startedAt": {
"type": "string"
},
"stoppedAt": {
"type": [
"string",
"null"
]
},
"elapsedMs": {
"type": "number"
},
"elapsed": {
"type": "string"
},
"mode": {
"type": "string"
},
"activity": {
"type": "string",
"enum": [
"coding",
"office",
"meeting",
"learning",
"personal",
"hobby",
"habit"
]
},
"idleMinutes": {
"type": [
"number",
"null"
]
},
"lastSeenAt": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"required": [
"id",
"workId",
"work",
"state",
"startedAt",
"stoppedAt",
"elapsedMs",
"elapsed",
"mode",
"activity",
"idleMinutes",
"lastSeenAt",
"note",
"source"
],
"additionalProperties": false
},
"nextWriteAt": {
"type": "string"
}
},
"required": [
"project",
"coalesced",
"action",
"nextWriteAt"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢ntime_mail_list(folder, query, limit)
Use this when you need to list account mail in a folder as summaries containing sender, subject, and snippet. It does not send mail or return the account API key.
输入模式
{
"type": "object",
"properties": {
"folder": {
"default": "inbox",
"description": "Folder. Defaults to inbox.",
"type": "string",
"enum": [
"inbox",
"starred",
"drafts",
"sent",
"archive",
"trash"
]
},
"query": {
"description": "Full-text search over subject, sender, recipients, and snippet.",
"type": "string",
"maxLength": 200
},
"limit": {
"default": 20,
"description": "Maximum 50.",
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"folder",
"limit"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"folder": {
"type": "string"
},
"from": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"email"
],
"additionalProperties": false
},
"to": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"email"
],
"additionalProperties": false
}
},
"subject": {
"type": "string"
},
"snippet": {
"type": "string"
},
"starred": {
"type": "boolean"
},
"readAt": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"sortAt": {
"type": "string"
}
},
"required": [
"id",
"folder",
"from",
"to",
"subject",
"snippet",
"starred",
"readAt",
"status",
"sortAt"
],
"additionalProperties": false
}
}
},
"required": [
"messages"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡ntime_mail_draft(to, cc, subject, text)
Use this when you need to create a message in the drafts folder. It does not send the message.
输入模式
{
"type": "object",
"properties": {
"to": {
"default": [],
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"maxLength": 254
}
},
"cc": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"maxLength": 254
}
},
"subject": {
"default": "",
"type": "string",
"maxLength": 200
},
"text": {
"default": "",
"type": "string",
"maxLength": 100000
}
},
"required": [
"to",
"subject",
"text"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"folder": {
"type": "string"
},
"status": {
"type": "string"
},
"version": {
"type": "number"
}
},
"required": [
"id",
"folder",
"status",
"version"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}社区
证据