MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / buildDocAppendBlocksRequest

Function buildDocAppendBlocksRequest

scripts/feishu/smoke.ts:986–999  ·  view source on GitHub ↗
(input: {
  docToken: string;
  parentBlockId: string;
  children: Record<string, unknown>[];
})

Source from the content-addressed store, hash-verified

984}
985
986function buildDocAppendBlocksRequest(input: {
987 docToken: string;
988 parentBlockId: string;
989 children: Record<string, unknown>[];
990}): FeishuApiRequest {
991 return {
992 method: "POST",
993 path: `/open-apis/docx/v1/documents/${encodeURIComponent(input.docToken)}/blocks/${encodeURIComponent(input.parentBlockId)}/children`,
994 body: {
995 children: input.children,
996 index: -1,
997 },
998 };
999}
1000
1001function buildSheetMetadataRequest(sheetToken: string): FeishuApiRequest {
1002 return {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected