MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / createTag

Function createTag

background.js:2170–2181  ·  view source on GitHub ↗
(name, limitType, remark)

Source from the content-addressed store, hash-verified

2168 return normalizeLuckmailTags(await request('GET', '/api/v1/openapi/email/tags'));
2169 },
2170 async createTag(name, limitType, remark) {
2171 const body = {
2172 name: String(name || '').trim(),
2173 limit_type: Number(limitType) || 0,
2174 };
2175 if (remark !== undefined) {
2176 body.remark = String(remark || '').trim();
2177 }
2178 return normalizeLuckmailTags([await request('POST', '/api/v1/openapi/email/tags', {
2179 jsonData: body,
2180 })])[0] || null;
2181 },
2182 },
2183 };
2184}

Callers

nothing calls this directly

Calls 2

normalizeLuckmailTagsFunction · 0.85
requestFunction · 0.85

Tested by

no test coverage detected