@canvs/canvs-library-skill 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "canvs-library-skill",
|
|
3
|
+
"version": "{{VERSION}}",
|
|
4
|
+
"description": "Publish and search research documents in Canvs Library",
|
|
5
|
+
"base_url": "{{LIBRARY_API_BASE_URL}}",
|
|
6
|
+
"client_id": "{{LIBRARY_SKILL_CLIENT_ID}}",
|
|
7
|
+
"tools": [
|
|
8
|
+
{
|
|
9
|
+
"name": "authenticate_library",
|
|
10
|
+
"description": "Exchange Canvs agent client credentials for a Bearer token. Call before any other library tool. Cache token for 55 minutes.",
|
|
11
|
+
"input_schema": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": [
|
|
14
|
+
"environment"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"environment": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"staging",
|
|
21
|
+
"production"
|
|
22
|
+
],
|
|
23
|
+
"default": "production"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "publish_document",
|
|
30
|
+
"description": "Publish a markdown document to research.canvs.in. Returns the public URL and research_id.",
|
|
31
|
+
"input_schema": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": [
|
|
34
|
+
"markdown"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"markdown": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"title": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"tags": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"slug": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"visibility": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"public",
|
|
56
|
+
"private"
|
|
57
|
+
],
|
|
58
|
+
"default": "public"
|
|
59
|
+
},
|
|
60
|
+
"polish": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
"polish_instructions": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"source_agent": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "publish_page",
|
|
75
|
+
"description": "Add a sub-page to an existing research tree.",
|
|
76
|
+
"input_schema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"research_id",
|
|
80
|
+
"markdown",
|
|
81
|
+
"path"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"research_id": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"markdown": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"path": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"title": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"polish": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "search_library",
|
|
105
|
+
"description": "Search published research by keyword or tags.",
|
|
106
|
+
"input_schema": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"q": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"tags": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"limit": {
|
|
119
|
+
"type": "number",
|
|
120
|
+
"default": 20
|
|
121
|
+
},
|
|
122
|
+
"offset": {
|
|
123
|
+
"type": "number",
|
|
124
|
+
"default": 0
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "get_research",
|
|
131
|
+
"description": "Get full metadata and page tree for a research entry.",
|
|
132
|
+
"input_schema": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"required": [
|
|
135
|
+
"research_id"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"research_id": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|